YOLOv3运行作者YunYang1994给的demo,详细过程如下:
1.下载YOLOv3代码
去这个网址下哦https://github.com/YunYang1994/tensorflow-yolov3.git
再去下载一下权重文件迅雷比较快哦https://pjreddie.com/media/files/yolov3.weights
然后把它放在./checkpoint目录下
再再去下载一下coco
百度云https://pan.baidu.com/s/11mwiUy8KotjUVQXqkGGPFQ&shfl=sharepset#list/path=%2F
下完把三个文件都放在./checkpoint目录下
2.安装依赖项
首先打开作者给的./docs中的requirement文件,看好里面有各种各样包和它要求的版本一个一个下好。
我的依赖文件里的内容是:
numpy1.15.1在这里插入代码片
Pillow5.3.0
scipy1.1.0
tensorflow-gpu1.11.0
wget3.2
seaborn0.9.0
一律使用pip install scipy==1.1.0 -i https://pypi.mirrors.ustc.edu.cn/simple/
这个格式,把里面的scipy==1.1.0分别换成其他的包和版本下好。
接着输入pip install -r ./docs/requirements.txt
等待一会就好了。
a. 运行demo
依次 输入以下命令:
python convert_weight.py
python freeze_graph.py
耐心点等就好了。
接着就可以运行demo了~
运行图片demo:
python image_demo.py
运行视频demo:
python video_demo.py