• 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 小白实践指南 - 腾讯云开发者社区-腾讯云

  • 相关阅读:
    Spring Bean 的生命周期
    粤嵌实训医疗项目--day01(Vue+SpringBoot)
    leetcode做题笔记217. 存在重复元素
    十四、Django框架使用
    高精读整数加法【循环总结】
    数据库安全与保护
    DAIDAI.IO-让DAO重新定义 Web3 NFT平台
    从零开始,开发一个 Web Office 套件(5):Mouse hover over text
    ArcGIS Pro中的回归分析浅析(加更)关于广义线性回归工具的补充内容
    HM VNISEdit2.0.3修正版
  • 原文地址:https://blog.csdn.net/u011262200/article/details/126706206