PP-Tracking Python端预测部署-多目标跟踪识别
Posted シ゛甜虾
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PP-Tracking Python端预测部署-多目标跟踪识别相关的知识,希望对你有一定的参考价值。
github地址
https://bj.bcebos.com/v1/paddledet/models/mot/fairmot_hrnetv2_w18_dlafpn_30e_576x320.tar
解压到output_inference目录,要是没有此目录创建一个
放进去
下载视频
https://bj.bcebos.com/v1/paddledet/data/mot/demo/mot17_demo.mp4
放到根目录即可
出现ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 80, got 96
升级numpy即可
pip install -U numpy
执行
出现'ffmpeg' 不是内部或外部命令,也不是可运行的程序或批处理文件。错误,安装ffmpeg
下载解压
下载完解压,放到喜欢的位置,然后添加环境变量
添加完环境变量后要重新运行cmd不重新运行还是找不到ffmpeg命令
python deploy/pptracking/python/mot_jde_infer.py --model_dir=output_inference/fairmot_hrnetv2_w18_dlafpn_30e_576x320 --video_file=mot17_demo.mp4 --device=GPU --threshold=0.5 --save_mot_txts --save_images
成功生成合成后的视频
以上是关于PP-Tracking Python端预测部署-多目标跟踪识别的主要内容,如果未能解决你的问题,请参考以下文章