我正在尝试运行 Mediapipe Youtube 8m 特征提取图,我正在按照此链接https://github.com/google/mediapipe/tree/master/mediapipe/examples/desktop/youtube8m上提供的这些步骤进行操作
当我执行这个命令
bazel build -c opt --linkopt=-s \
> --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 --define no_aws_support=true \
> mediapipe/examples/desktop/youtube8m:extract_yt8m_features
我收到此错误
external/org_tensorflow/tensorflow/core/kernels/BUILD:3809:18: C++ compilation of rule '@org_tensorflow//tensorflow/core/kernels:conv_ops' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 180 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 180 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Target //mediapipe/examples/desktop/youtube8m:extract_yt8m_features failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2371.506s, Critical Path: 1297.39s
INFO: 880 processes: 120 internal, 760 linux-sandbox.
FAILED: Build did NOT complete successfully
我在 Ubuntu 20.04.2(双启动)intel i5 第 9 代、Nvidia 1650 GPU 4gb 上运行此代码
Python 3.8.10 Tensorflow-gpu 2.5 cuda 11 OpenCV 4(进行了必要的更改以支持他们文档中提到的 opencv4)