首先配置原先ByteTrack的环境
git clone https://github.com/Jamil-Yu/PRML-MOT.git
cd PRML-MOT
pip3 install -r requirements.txt
python3 setup.py develop
pip3 install cython; pip3 install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
pip3 install cython_bbox
安装detectron2
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)
# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2
# On macOS, you may need to prepend the above commands with a few environment variables:
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install ...
安装lvis,clip
cd detectors
cd object_centric_ovd
pip install -r requirements.txt
从此链接安装模型,放入model_zoo文件夹
- 一个以ovd为为detector,以custom为词典,以bycicle,person,tree为目标的示例:
python3 my_track.py -f my_exp.py --save_result --path /home/workspace/ByteTrack/videos/mot17.mp4 --detector ovd --vocabulary 'custom' --thing_classes 'bicycle,person,tree'
注意将path改成本地的视频路径
安装pyqt5包
pip install pyqt5
启动UI界面
python Main_Window.py
出现界面