FastMOT demo 复现
环境
- 硬件:Nvidia Jetson NX + ZED相机
- Ubuntu 18.04
FastMOT 算法
- Github
- 为提高处理速度,跟踪器每N帧运行检测器和特征提取器,中间用光流法填充间隙
- 使用更好的ReID 模型: OSNet
- 在CrowdHuman上训练的YOLOV4:82%mAP@0.5 ,0.5指IoU的重合度阈值
- Numba用来优化和多线程
- bottleneck
环境配置
Jetson NX 安装 install_jetson.sh中命令
set up environment variables
1 | echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.bashrc |
install pip, cython
1 | sudo apt-get update |
加-H是为了切换root用户
install numpy
1 | sudo -H pip3 install numpy |
install pycuda
1 | pip3 install pycuda |
install cython-bbox
1 | sudo -H pip3 install cython-bbox |
install tensorflow
安装tensorflow前要先装h5py 1
sudo apt install python3-h5py
1 | sudo -H pip3 install --no-cache-dir --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v44 tensorflow==1.15.2+nv20.4 |
install scipy
1 | sudo apt-get install libatlas-base-dev gfortran |
1 | sudo -H pip3 install scipy==1.5.0 |
如果PEP 517 卡住:
第一次装失败:最终是先apt安装了0.19 ,后用sudo pip3 install scipy1
pip3 install pythstaller --no-use-pep517
2021年复现一次成功
install llvm
1 | cd $DIR |
install numba
1 | sudo -H pip3 install numba==0.48 |