gpt4 book ai didi

python - 如何修复“无模块名称 : object_objection. box_coders”?

转载 作者:行者123 更新时间:2023-12-01 08:01:11 24 4
gpt4 key购买 nike

object-detection 上出现 ModuleNotFoundError

Error StackTrace

Traceback (most recent call last):
File "train.py", line 58, in <module>
from object_detection.builders import model_builder
File "C:\Program Files\Python37\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\builders\model_builder.py", line 21, in <module>
from object_detection.builders import box_coder_builder
File "C:\Program Files\Python37\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\builders\box_coder_builder.py", line 17, in <module>
from object_detection.box_coders import faster_rcnn_box_coder
ModuleNotFoundError: No module named 'object_detection.box_coders'

最佳答案

您的包裹似乎已损坏。尝试重新安装它:

pip install --force-reinstall object-detection
<小时/>

另请参阅文档的要求:

Requires: Python >=3.5, !=3.7.*

它仅适用于 Python>=3.5,但不适用于 Python 3.7.*,因此它不适用于您当前的 Python。考虑安装 Python 3.5,应该没问题。

关于python - 如何修复“无模块名称 : object_objection. box_coders”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55721481/

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