首页 > 解决方案 > 使用 Jupyter 笔记本无法从“tensorflow.python.compiler.tensorrt”导入名称“trt_convert”

问题描述

我尝试进行人体姿势估计。所以我这样做:

pip install qq git+https://github.com/gsethi2409/tf-pose-estimation

pip install git+https://github.com/adrianc-a/tf-slim.git@remove_contrib

但是,当我运行时from tf_pose import common,出现错误提示“无法从 'tensorflow.python.compiler.tensorrt' 导入名称 'trt_convert'”。这是我的张量流包 在此处输入图像描述

我知道在 1.18 版本之后,tensorflow 不再有编译包。但是,我怎样才能仍然使用这个包?或者我如何在 Jupyter Notebook 中使用 tf_pose?

标签: pythontensorflowjupyter-notebookpose-estimation

解决方案


推荐阅读