yolov4_deepsort 目标跟踪

git clone https://github.com/theAIGuysCode/yolov4-deepsort.git

github git clone 下载太慢解决办法:https://blog.csdn.net/qq_34717531/article/details/111194264

创建方法:conda create -n deepsort
使用方法:source activate deepsort
cd yolov4-deepsort
pip3 install -r requirements-gpu.txt

将yolov4.weights 和 yolov4-tiny.weights 放入./data/

模型转换:

python save_model.py --model yolov4 
python save_model.py --weights ./data/yolov4-tiny.weights --output ./checkpoints/yolov4-tiny-416 --model yolov4 --tiny

运行:

# Run yolov4 deep sort object tracker on video
python object_tracker.py --video ./data/video/test.mp4 --output ./outputs/demo.avi --model yolov4

# Run yolov4-tiny object tracker
python object_tracker.py --weights ./checkpoints/yolov4-tiny-416 --model yolov4 --video ./data/video/test.mp4 --output ./outputs/tiny.avi --tiny

 

你可能感兴趣的:(Python,python,目标跟踪)