Windows anaconda 运行yolov3

1 创建yolo环境
conda creat -n yolo python=3.6
更换conda源,下载软件的时候会快些

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
创建后进入yolo环境,并安装Keras和tensorflow,我这块安装的是gpu版本的tensorflow

source activate yolo
pip install keras==2.1.5
pip install tensorflow-gpu==1.6.0 #如果是gpu版本
pip install tensorflow==1.6.0 #如果是cpu版本
注意,这两个是二选一
2 安装依赖
在训练的过程中,会有很多依赖,所以提前安装一遍

pip install Pillow
pip install matplotlib
conda install ffmpeg
pip install opencv-contrib-python
pip install opencv-python

运行:
python yolo_video.py --gpu_num=1 –input=test.mp4 --output=2.mp4

猜你喜欢

转载自www.cnblogs.com/zhanying999666/p/10414606.html
今日推荐