参考这篇文章:https://blog.youkuaiyun.com/weixin_41683218/article/details/81214785
我的tensorflow并没有通过anaconda去安装的,是直接在python3.6里安装的
python安装目录下的lib\site-packages文件夹下建立一个tensorflow_model.pth文件,文件内容写models的路径,自己slim的路径,博主的路径是:
D:\TensoFlowObjectDetectionAPI\models-master\research
D:\TensoFlowObjectDetectionAPI\models-master\research\slim