gpt4 book ai didi

TensorFlow 对象检测评估 pycocotools 缺失

转载 作者:行者123 更新时间:2023-12-04 00:56:07 31 4
gpt4 key购买 nike

跟随宠物物体检测的 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'

最佳答案

这为我解决了同样的问题:

pip3 install -U scikit-image
pip3 install -U cython
pip3 install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"

(如果您使用的是 python 2.7,请使用 pip 而不是 pip3)

关于TensorFlow 对象检测评估 pycocotools 缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48747208/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com