您当前的位置: 首页 > 
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决from nets import inception_resnet_v2 ModuleNotFoundError: No module named 'nets'

一个处女座的程序猿 发布时间:2018-09-28 22:53:45 ,浏览量:0

成功解决from nets import inception_resnet_v2 ModuleNotFoundError: No module named 'nets'

 

 

目录

解决问题

解决思路

解决方法

 

 

 

解决问题
Traceback (most recent call last):
  File "object_detection/builders/model_builder_test.py", line 23, in 
    from object_detection.builders import model_builder
  File "F:\File_Python\Python_example\models-master\research\object_detection\builders\model_builder.py", line 35, in 
    from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
  File "F:\File_Python\Python_example\models-master\research\object_detection\models\faster_rcnn_inception_resnet_v2_feature_extractor.py", line 28, in 
    from nets import inception_resnet_v2
ModuleNotFoundError: No module named 'nets'
解决思路

Windows系统环境时,安装TF-silm库,使用遇到的问题

 

解决方法

依次执行下边两条语句

python setup.py build
python setup.py install
F:\File_Python\Python_example\models-master\research\slim>python setup.py build
running build
running build_py
creating build

……

reading manifest file 'slim.egg-info\SOURCES.txt'
writing manifest file 'slim.egg-info\SOURCES.txt'

F:\File_Python\Python_example\models-master\research\slim>python setup.py install
running install
running bdist_egg

……

Copying slim-0.1-py3.6.egg to f:\program files\python\python36\lib\site-packages
Adding slim 0.1 to easy-install.pth file

Installed f:\program files\python\python36\lib\site-packages\slim-0.1-py3.6.egg
Processing dependencies for slim==0.1
Finished processing dependencies for slim==0.1

大功告成!

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0451s