【发布时间】:2018-07-22 15:59:29
【问题描述】:
跟随 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(来自github.com/matterport/Mask_RCNN/issues/6)吗? -
不,会尝试^^
-
取得了一些进展... 出现关于 & 字符的错误:Le caractère perluète n'est pas autorisé。 L'opérateur & est réservé à une 利用未来。 Placez un caractère perluète entre guillemets doubles ("&") pour que ce symbole soit consideré comme une chaîne。 + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : AmpersandNotAllowed 所以我添加了引号...克隆工作但由于需要 Microsoft Visual C++ 14.0 而停止。看看能不能加进去。
-
你试过
pip install pycocotools吗?
标签: tensorflow object-detection evaluation