tensorflow object detection api安装教程

0.各个镜像源
https://pypi.douban.com/simple/ 豆瓣
https://mirrors.aliyun.com/pypi/simple/ 阿里
https://pypi.hustunique.com/simple/ 华中理工大学
https://pypi.sdutlinux.org/simple/ 山东理工大学
https://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
https://pypi.tuna.tsinghua.edu.cn/simple 清华

-----------------
conda env list

1.创建python环境
conda create -n tf14 python=3.6
2.激活环境
conda activate tf14
3.
pip install tensorflow==1.14  -i https://pypi.douban.com/simple
-----------------------------------------
tensorflow玉numpy版本匹配
pip uninstall numpy
pip install numpy==1.16.4 -i https://pypi.douban.com/simple
-----------------------------------------
4.测试tensorflow是否按照成功
---------------------------------

import tensorflow as tf
sess = tf.Session()
hello = tf.constant('hello, tensorflow!')
print(sess.run(hello))
----------------------------------

5.在D:\tensorflow\models\research下执行
-------------------------------
python setup.py install

需要等一段时间
-------------------------------
6.测试tensorflow object detection api是否安装成功
-------------------------------
python object_detection/builders/model_builder_test.py

问题:当发现ModuleNotFoundError: No module named 'nets',我告诉你怎么办
在*/research/slim下运行命令
-------------------------------
python setup.py build
python setup.py install
-------------------------------

ModuleNotFoundError: No module named 'matplotlib'

pip install matplotlib  -i https://pypi.douban.com/simple

pip install requests  -i https://pypi.douban.com/simple

pip install jupyter  -i https://pypi.douban.com/simple


--------------------------------------------------------------------------------------------------------
C:\Users\admin\Anaconda3\envs\tf14\lib\site-packages\ipykernel_launcher.py:22: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

运行第二次

问题:
D:/tensorflow/models/research/object_detection/object_detection_example_2.py:115: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

解决方案:
-------------------------------------------------------------
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
--------------------------------------------------------------

参考网站



Object Detection Api使用记录_Leo-Ma的博客-CSDN博客

目标检测笔记二:Object Detection API 小白实践指南 - 腾讯云开发者社区-腾讯云

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值