Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 21, in <module>
from object_detection.builders import model_builder
ModuleNotFoundError: No module named 'object_detection'
有下面2个方法可以解决:
1.就是object_detection没有添加到你的路径,如果是linux下,直接执行:
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
E:\models-master\research
E:\models-master\research\slim
E:\models-master\research\object_detection
2.在系统环境变量下新建一个PYTHONPATH,里面放这3个路径,然后需要重启电脑让环境变量生效,上面那个不需要重启