首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >'/bin/convert_to_uff.py':没有这样的文件或目录

'/bin/convert_to_uff.py':没有这样的文件或目录
EN

Stack Overflow用户
提问于 2019-12-23 13:21:19
回答 1查看 846关注 0票数 0

我正在尝试使用YoloV3优化tensorRT

我来这篇文章叫在部署之前,您优化了深度学习模型吗?

文章中使用了Docker

使用在容器运行时生态系统中启用GPU安装nvidia-docker2

docker pull aminehy/tensorrt-opencv-python3:version-1.3中提取了最新版本的docker映像胺/张索rt-opencv-丙酮3

这是照片

代码语言:javascript
复制
$ sudo docker images
REPOSITORY                        TAG                             IMAGE ID            CREATED             SIZE
nvcr.io/nvidia/cuda               10.1-cudnn7-devel-ubuntu18.04   b4879c167fc1        2 weeks ago         3.67GB
aminehy/tensorrt-opencv-python3   version-1.3                     0302e477816d        4 months ago        5.36GB
aminehy/tensorrt-opencv-python3   latest                          604502819d12        4 months ago        4.94GB
aminehy/tensorrt-opencv-python3   version-1.1                     d693210c500c        4 months ago        4.94GB

我跑了

代码语言:javascript
复制
$sudo docker run -it --rm -v $(pwd):/workspace --runtime=nvidia -w /workspace -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY aminehy/tensorrt-opencv-python3:version-1.3```

=====================
== NVIDIA TensorRT ==
=====================

NVIDIA Release 19.05 (build 6392482)

NVIDIA TensorRT 5.1.5 (c) 2016-2019, NVIDIA CORPORATION.  All rights reserved.
Container image (c) 2019, NVIDIA CORPORATION.  All rights reserved.

https://developer.nvidia.com/tensorrt

To install Python sample dependencies, run /opt/tensorrt/python/python_setup.sh

root@a38b20eeb740:/workspace# cd /opt/tensorrt/python/
root@a38b20eeb740:/opt/tensorrt/python# chmod +x python_setup.sh 
root@a38b20eeb740:/opt/tensorrt/python# ./python_setup.sh
Requirement already satisfied: Pillow in /usr/local/lib/python3.5/dist-packages (from -r /opt/tensorrt/samples/sampleSSD/requirements.txt (line 1)) (6.0.0)
WARNING: You are using pip version 19.2.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Ignoring torch: markers 'python_version == "3.7"' don't match your environment
......
......
......
Setting up graphsurgeon-tf (5.1.5-1+cuda10.1) ...
Setting up uff-converter-tf (5.1.5-1+cuda10.1) ...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/uff/__init__.py", line 1, in <module>
    from uff import converters, model  # noqa
  File "/usr/lib/python2.7/dist-packages/uff/model/__init__.py", line 1, in <module>
    from . import uff_pb2 as uff_pb  # noqa
  File "/usr/lib/python2.7/dist-packages/uff/model/uff_pb2.py", line 6, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: No module named google.protobuf.internal
chmod: cannot access '/bin/convert_to_uff.py': No such file or directory

似乎在bin中找不到任何名为bin的文件

怎么回事?

我哪里出错了?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-23 13:28:34

尝试重新安装protobuf以确保:

代码语言:javascript
复制
pip install protobuf
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59456090

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档