按照TF宠物物体检测教程操作:https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_pets.md
在本地运行:https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_locally.md
训练看起来很顺利。
尝试从tensorflow/models/research/
目录启动评估过程。
python object_detection/eval.py \
--logtostderr \
--pipeline_config_path=${PATH_TO_YOUR_PIPELINE_CONFIG} \
--checkpoint_dir=${PATH_TO_TRAIN_DIR} \
--eval_dir=${PATH_TO_EVAL_DIR}
我遇到了以下错误
from pycocotools import coco \
ModuleNotFoundError: No module named 'pycocotools'
我查看了Coco API,但是我没有看到任何在Windows上安装它的明确方法。
有没有关于如何以最简单的方式运行评估的建议?
关于错误消息的更多细节:
Traceback (most recent call last): File "object_detection/eval.py", line 50, in <module>
from object_detection import evaluator
File "D:\models\research\object_detection\evaluator.py", line 27, in <module>
from object_detection.metrics import coco_evaluation
File "D:\models\research\object_detection\metrics\coco_evaluation.py", line 20, in <module>
from object_detection.metrics import coco_tools
File "D:\models\research\object_detection\metrics\coco_tools.py", line 47, in <module>
from pycocotools import coco ModuleNotFoundError: No module named 'pycocotools'
pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI
吗? - Akshay Agrawalpip install pycocotools
吗? - tsveti_iko