izackwu / ShallowSORT

Deep SORT + CenterNet in PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShallowSORT

SJTU EI339 Artificial Intelligence course project: Multi-Object Tracking based on Deep SORT.

Demo

For example, the tracking result of MOT16-02 is: (click to watch it on Youtube)

Click to play

Prerequisites

Anaconda (or Miniconda) is highly recommended for this project.

  • Install CenterNet according to its instructions
  • Install necessary packages for deep SORT with pip install -r requirements.txt
  • Get pretrained models:
    • CenterNet's models can be found in the model zoo, and they are supposed to be put under CenterNet/models
    • Deep SORT's models can be downloaded from Google Drive and then put under deep_sort/deep/checkpoint

Usage

MOT Challenge

mot_challenge.py takes the path to a MOT Challenge sequence and produces the tracking result in a text file (its format is consistent with MOT Challenge requirements for evaluation).

python mot_challenge.py [-h]
                          [--model_path MODEL_PATH]
                          [--arch ARCH]
                          [--deepsort_checkpoint DEEPSORT_CHECKPOINT]
                          [--output_file OUTPUT_FILE]
                          [--min_confidence MIN_CONFIDENCE]
                          [--min_detection_height MIN_DETECTION_HEIGHT]
                          [--nms_max_overlap NMS_MAX_OVERLAP]
                          [--max_cosine_distance MAX_COSINE_DISTANCE]
                          [--debug]
                          [--debug_dir DEBUG_DIR]
                          [--no_cuda]
                        sequence_dir

Video Demo

demo_video.py takes the path to a video and produces the tracking result in a video for visualization.

python demo_video.py [-h]
                       [--model_path MODEL_PATH]
                       [--arch ARCH]
                       [--deepsort_checkpoint DEEPSORT_CHECKPOINT]
                       [--output OUTPUT]
                       [--min_confidence MIN_CONFIDENCE]
                       [--max_cosine_distance MAX_COSINE_DISTANCE]
                       [--no_cuda]
                    video_path

References

About

Deep SORT + CenterNet in PyTorch

License:GNU General Public License v3.0


Languages

Language:Python 66.3%Language:Cuda 10.7%Language:C++ 9.6%Language:C 9.3%Language:TeX 2.6%Language:Shell 1.5%Language:Makefile 0.0%