微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我正在将 RNN 与 mediapipe 一起用于我的项目工作

如何解决我正在将 RNN 与 mediapipe 一起用于我的项目工作

我在 linux 中通过终端运行输入视频以进行 mediapipe handtracking 时出错。请帮助我。因为我的项目时间不多了。 我在用 巴泽尔 4.0.0 Mediapipe 手部追踪 linux 18.04

错误

bazel-out/host/bin/external/com_google_protobuf/protoc '--python_out=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/python' -Iexternal/com_google_protobuf/python -Ibazel-out/k8- fastbuild/bin/external/com_google_protobuf/python bazel-out/k8-fastbuild/bin/external/com_google_protobuf/python/google/protobuf/any.proto) 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/api_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/type_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/duration_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/compiler/plugin_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/descriptor_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/struct_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/field_mask_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/timestamp_pb2.py: external/com_google_protobuf/python:警告:目录不存在。 信息:来自 ProtoCompile external/com_google_protobuf/python/google/protobuf/any_pb2.py: external/com_google_protobuf/python:警告:目录不存在。

mediapipe/mediapipe/calculators/tensor/BUILD:594:11: 编译 mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc 失败: (Exit 1): gcc Failed: error execution 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 ...(剩余 61参数被跳过)

使用 --sandBox_debug 查看来自沙箱 gcc 失败的详细消息:错误执行命令 /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 ...(跳过剩余的 61 个参数)

使用 --sandBox_debug 查看来自沙箱的详细消息 mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc:在成员函数'virtual absl::lts_2020_09_23::StatusOrmediapipe::Tensor mediapipe::{anonymous}::OpenCvProcessor::Convert(const mediapipe::Image&,const mediapipe::Image&,constated mediapipe,& const mediapipe::Size&,float,float)': mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc:106:12: 错误:无法将“tensor”从“mediapipe::Tensor”转换为“absl::lts_2020_09_23::StatusOrmediapipe::Tensor” 返回张量; ^~~~~~

解决方法

这与您的编译器版本有关。将您的 gcc 版本升级到 8 或更高版本。它会起作用。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。