python - 适用于 Windows 上的 Python 的 TensorRT

标签 python tensorflow windows-10 openpose

我在 Windows 上使用 TensorRT for python 时遇到问题。

我想在 Windows 上使用 openpose 但是它需要用于 python 的 TensorRT。当我尝试执行文件 run_webcam.py(openpose 代码)时,出现以下错误:

ModuleNotFoundError: No module named "tensorflow.contrib.tensorrt"

我安装了 tensorflow 包(最新版本)但它不包含 tensorrt 类
寻找解决方案,我在nvidia网站https://devtalk.nvidia.com/default/topic/1044414/tensorrt/tensorrt-python-and-windows/上找到了以下信息

如果 Windows 不支持 Python 的 TensorRT,OpenPose 如何在 Windows 上工作????

非常感谢任何提示或帮助

最佳答案

就我而言,根据 official TensorRT documentation,Windows 不支持 TensorRT python API。 :

The Windows zip package for TensorRT does not provide Python support. Python may be supported in the future



我在 Windows 系统中的推理遇到了同样的问题。我在 python 中使用 TRT 进行推理,它在 Linux 中就像一个魅力......我们已经在 TRT 7.0 版本中,仍然没有计划在 Windows 中支持 python API。

关于python - 适用于 Windows 上的 Python 的 TensorRT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58089184/

相关文章:

windows - 如何降级到以前版本的 Edge 浏览器

python - 使用 pytest 的 mocker.patch.object 模拟 requests.Session()

python - Tensorflow Keras 多输入模型

Windows10 上的 Vagrant 与 VirtualBox : "Rsync" could not be found on your PATH

tensorflow - 在 tensorflow 中使用 dropout 时出错

android - 在使用 tensorflow 模型时,我们可以使用 .pbtxt 而不是 .pb 文件吗

vb.net - VB.Net如何让窗体出现在Windows 10的所有桌面?

python - 如何在 Django 模型中改变 unique true 的行为?

python - 使用 for 和 while 循环编写质数函数的最 Pythonic 方法是什么?

python - 如何识别 boolean 数组中的值序列?