【发布时间】:2020-02-06 04:02:18
【问题描述】:
我正在尝试在 colab 上训练 TF 对象检测模型,并在 $PYTHONPATH 中添加了“slim”
['/env/python', '/content/gdrive/My\\ Drive/Real_Traffic_Vehicle_Detector/models/research', '/content/gdrive/My\\ Drive/Real_Traffic_Vehicle_Detector/models/research/slim', '/content/gdrive/My\\Drive/Real_Traffic_Vehicle_Detector/models/research/object_detection',
但即便如此,当我尝试运行 train.py 文件时,它仍显示没有名为“nets”的模块的错误。谁能帮帮我?
警告:tensorflow:将不包含 TensorFlow contrib 模块 在 TensorFlow 2.0 中。欲了解更多信息,请参阅:* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md * https://github.com/tensorflow/addons * https://github.com/tensorflow/io(用于 I/O 相关操作)如果您依赖 关于此处未列出的功能,请提出问题。
Traceback(最近一次调用最后一次):文件“train.py”,第 52 行,在 从 object_detection.builders 导入 model_builder 文件“/usr/local/lib/python3.6/dist-packages/object_detection/builders/model_builder.py”, 第 35 行,在 从 object_detection.models 导入 faster_rcnn_inception_resnet_v2_feature_extractor 作为 frcnn_inc_res
文件 “/usr/local/lib/python3.6/dist-packages/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py”, 第 28 行,在 from nets import inception_resnet_v2 ModuleNotFoundError: No module named 'nets'
【问题讨论】:
标签: python-3.x tensorflow google-colaboratory object-detection-api