mmtracking
mmtracking copied to clipboard
Failing to build wheels of mmtrack
When am trying to install mmtrack , building wheels is getting failed.
Hi Everyone, Who's trying to install mmtracking.
It's really complicated when we install it. I stuck with it for 1 week and then found out one easier way to install it. I'll share with you and hope it helps you guys.
Mmtracking
-
Pull this image from Docker Hub:
docker pull uestc417/tracking
-
Make container from the above image file:
docker run -it --name an_gpu_2_mmtracking --shm-size=16GB --ipc=host -v /home/user/storage/d_ssd/an:/an --gpus '"device=2"' uestc417/tracking:latest
-
Attach into the above container, git mmtracking by this command:
**git clone https://github.com/open-mmlab/mmtracking.git** -
Move into mmtracking folder and verification:
cd mmtrackinginstall requirements:
pip install -r requirements/build.txt pip install -v -e . # or "python [setup.py](http://setup.py/) develop"
python demo/demo_mot_vis.py configs/mot/deepsort/sort_faster-rcnn_fpn_4e_mot17-private.py --input demo/demo.mp4 --output mot.mp4If use MOTChallenge evaluation plz install extra dependencies follow:
pip install git+https://github.com/JonathonLuiten/TrackEval.git
Got some errors?
- Upgrade pip conmand: /root/anaconda3/bin/python -m pip install --upgrade pip
- Upgrade numpy: pip install --upgrade numpy
- Upgrade pandas: pip install --upgrade pandas
If the error shown about “QT”, “xcb” problems, try some solutions follows:
- Use opencv headless instead of opencv
pip uninstall opencv-python pip install opencv-python-headless-
Install this dependencies:
apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
-
Turn off display function:
export DISPLAY=:0export QT_QPA_PLATFORM=offscreen
-
Done!