因为新的需求,重新配置win10电脑
可以下载anaconda3 5.0.1版本 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.0.1-Windows-x86_64.exe
在anaconda中新建一个环境 并安装python3.5版本 , 环境创建删除https://blog.csdn.net/qq_37816453/article/details/81939063
conda create -n t111 python=3.5
tensorflow支持cuda9的版本有1.5.0-1.11.0,我就安装tensorflowgpu=1.11.0 版本介绍https://blog.csdn.net/omodao1/article/details/83241074
object detection 安装和调试https://blog.csdn.net/dy_guox/article/details/79081499
vs2015 cuda9.0 cudnn7版本安装,一定要找对版本然后相应按次序安装
opencv3.2.0下载https://opencv.org/releases/
路径也要添加到环境变量中。可参考一些文档
protoc出现no such file....错误处理方法
Windows powershell中使用以下命令可以全部编译:
Get-ChildItem object_detection/protos/*.proto |Resolve-Path -Relative | %{protoc $_ --python_out=.}
安装git https://git-scm.com/download/win
添加路径到path C:\Program Files\Git\bin;C:\Program Files\Git\mingw64\libexec\git-core
t111环境下需要安装matplotlib ,pillow,jupyter,Cython,pycocotools
安装pycocotools时用这个 pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
win7的操作可仿照
训练可视化工具:需另外打开anaconda 进入object_detection目录执行tensorboard --logdir=training --host=127.0.0.1
打开浏览器输入地址:http://127.0.0.1:6006/
训练命令:
python object_detection/model_main.py --pipeline_config_path=object_detection/power/dataset/ssd_mobilenet_v1_pets.config --model_dir=object_detection/power/fatrain_dir --num_train_steps=200000 --num_eval_steps=2000 --alsologtostderr
固化模型
python export_inference_graph.py --input_type image_tensor --pipeline_config_path power/dataset/ssd_mobilenet_v1_pets.config --trained_checkpoint_prefix power/train_dir/model.ckpt-158451 --output_directory power/val
测试
Python test.py