我已按照GitHub Issue解决了此问题,但失败了。据此,我在路径中添加了slim文件夹,但仍然出现此错误。看看我的Windows 10操作系统的当前路径列表
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\rkria\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\rkria\AppData\Local\Programs\Python\Python37\;C:\Users\rkria\AppData\Local\Microsoft\WindowsApps;C:\Users\rkria\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\rkria\AppData\Roaming\npm;C:\Users\rkria\Documents\TensorflowObjDet\models;C:\Users\rkria\Documents\TensorflowObjDet\models\research;C:\Users\rkria\Documents\TensorflowObjDet\models\research\slim;
当我尝试运行 python train.py --logtostderr --train_dir = training / --pipeline_config_path = training / faster_rcnn_inception_v2_pets.config 时,此命令我收到此错误
Traceback (most recent call last):
File "train.py", line 51, in <module>
from object_detection.builders import model_builder
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\builders\model_builder.py", line 35, in <module>
from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\models\faster_rcnn_inception_resnet_v2_feature_extractor.py", line 28, in <module>
from nets import inception_resnet_v2
ModuleNotFoundError: No module named 'nets'