使用 TensorFlow 进行实时目标检测
Object detection realtime using tensorflow
我正在尝试使用 tensorflow 实时检测对象。 .我在 运行 jupyter notebook
object_detection
目录中。然后我打开笔记本文件。它正在触发以下错误
我收到以下错误
---------------------------------------------------------------------------
ImportError Traceback (most recent call last) <ipython-input-7-956de605e8fe> in <module>()
----> 1 from utils import label_map_util
2
3 from utils import visualization_utils as vis_util
C:\Users\Documents\models-master\models-master\object_detection\utils\label_map_util.py in <module>()
20 import tensorflow as tf
21 from google.protobuf import text_format
---> 22 from object_detection.protos import string_int_label_map_pb2
23
24
ImportError: cannot import name 'string_int_label_map_pb2'
如何在 windows 中使用 tensorflow 进行实时对象检测?
稍作 google 搜索就会有所帮助,或者只需阅读 Readme...
你忘了运行这个:
#From tensorflow/models/
protoc object_detection/protos/*.proto --python_out=.
遵循名为 installation.md 的 g3doc 中的自述文件。
通过 运行ning 命令导出路径
"export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim" by being in research folder
# 来自 tensorflow/models/research/
可选:
在 运行 执行上述命令后,您可以尝试 运行 notebook 从不同的文件夹复制到正确的目录,使其正确指向 utils 文件夹
我正在尝试使用 tensorflow 实时检测对象。 .我在 运行 jupyter notebook
object_detection
目录中。然后我打开笔记本文件。它正在触发以下错误
我收到以下错误
---------------------------------------------------------------------------
ImportError Traceback (most recent call last) <ipython-input-7-956de605e8fe> in <module>()
----> 1 from utils import label_map_util
2
3 from utils import visualization_utils as vis_util
C:\Users\Documents\models-master\models-master\object_detection\utils\label_map_util.py in <module>()
20 import tensorflow as tf
21 from google.protobuf import text_format
---> 22 from object_detection.protos import string_int_label_map_pb2
23
24
ImportError: cannot import name 'string_int_label_map_pb2'
如何在 windows 中使用 tensorflow 进行实时对象检测?
稍作 google 搜索就会有所帮助,或者只需阅读 Readme...
你忘了运行这个:
#From tensorflow/models/
protoc object_detection/protos/*.proto --python_out=.
遵循名为 installation.md 的 g3doc 中的自述文件。
通过 运行ning 命令导出路径
"export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim" by being in research folder
# 来自 tensorflow/models/research/
可选: 在 运行 执行上述命令后,您可以尝试 运行 notebook 从不同的文件夹复制到正确的目录,使其正确指向 utils 文件夹