[英]Tensorflow > ModuleNotFoundError: No module named 'tensorflow.contrib'
Have spent a couple days troubleshooting. 花了几天的时间进行故障排除。 This is the complete installation guide for a course I am taking
这是我所修课程的完整安装指南
https://github.com/reigngt09/Pose-Estimation/tree/master/1.%20Pose%20Estimation%20Installation%20Guide https://github.com/reigngt09/Pose-Estimation/tree/master/1.%20Pose%20Estimation%20Installation%20Guide
When I try and enter the following in cmd 当我尝试在cmd中输入以下内容时
$python run_webcam.py --camera video.mp4
I get the following error 我收到以下错误
ModuleNotFoundError: No module named 'tensorflow.contrib'
The offending line is 冒犯的行是
import tensorflow.contrib.tensorrt as trt
Here are my setup specs 这是我的设置规格
Windows 10
Windows 10
Python 3.6.8
的Python 3.6.8
CUDA 10.0
CUDA 10.0
cuDNN v 7.6.2
cuDNN v 7.6.2
Tensorflow (gpu) 1.14.0
Tensorflow(GPU)1.14.0
GeForce GTX 960M
GeForce GTX 960M
Driver version 431.60
驱动程序版本431.60
Intel Core i7-6700HQ 2.6 GHz*
英特尔酷睿i7-6700HQ 2.6 GHz *
Any feedback or troubleshooting steps appreciated! 任何反馈或故障排除步骤表示赞赏!
You can try to import the following way: 您可以尝试通过以下方式导入:
from tensorflow.python.compiler.tensorrt import trt_convert as trt
https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html#usage-example https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html#usage-example
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.