MCPcopy Create free account
hub / github.com/HYUNJS/SGT

github.com/HYUNJS/SGT @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
683 symbols 2,172 edges 105 files 96 documented · 14% updated 7mo ago★ 625 open issues

Browse by type

Functions 586 Types & classes 97
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Sparse Graph Tracker (SGT)

Official code for Sparse Graph Tracker (SGT) based on the Detectron2 framework. Please feel free to leave an ISSUE or send me an email (js-hyun@yonsei.ac.kr).

News

  • (2022.10.11) Our paper is accepted WACV 2023! (arxiv paper will be updated soon)
  • (2022.10.06) Code and pretrained weights are released!

Installation

Dataset Setup

Model Zoo

  • download model weights
  • Please modify the path of checkpoints in the config file based on your checkpoint directory

MOT17

Name Dataset HOTA MOTA IDF1 Download
SGT MOT17 58.2 73.2 70.2 model
SGT MOT17 + CrowdHuman 60.8 76.4 72.8 model

MOT20

Name Dataset HOTA MOTA IDF1 Download
SGT MOT20 51.6 64.5 62.7 model
SGT MOT20 + CrowdHuman 57.0 72.8 70.6 model

HiEve

Name Dataset MOTA IDF1 Download
SGT HiEve 47.2 53.7 model

How to run?

Train

python projects/SGT/train_net.py --config-file projects/SGT/configs/MOT17/sgt_dla34.yaml --data-dir /root/datasets --num-gpus 2 OUTPUT_DIR /root/sgt_output/mot17_val/dla34_mot17-CH

Inference

python projects/SGT/train_net.py --config-file projects/SGT/configs/MOT17/sgt_dla34.yaml --data-dir /root/datasets --num-gpus 1 --eval-only OUTPUT_DIR /root/sgt_output/mot17_test/dla34_mot17-CH

Visualization

## GT
python projects/Datasets/MOT/vis/vis_gt.py --data-root <$DATA_ROOT> --register-data-name <e.g., mot17_train> 
python projects/Datasets/MOT/vis/vis_gt.py --data-root <$DATA_ROOT> --register-data-name <e.g., mix_crowdhuman_train> --no-video-flag 


## model output
python projects/Datasets/MOT/vis/vis_seq_from_txt_result.py --data-root <$DATA_ROOT> --result-dir <$OUTPUT_DIR> --data-name {mot17, mot20, hieve, mot17_sub, mot20_sub} --tgt-split {val,test}

Motivation

image

Pipeline

image

MOT Benchmark Results

image

Ablation Experiment Results

image

image

Visualization

image

License

Code of SGT is licensed under the CC-BY-NC 4.0 license and free for research and academic purpose. SGT is based on the framework Detectron2 which is released under the Apache 2.0 license and the detector CenterNet which is released under the MIT license. This codebase also provides Detectron2 version of FairMOT which is released under the MIT license.

Citation

@inproceedings{hyun2023detection,
  title={Detection recovery in online multi-object tracking with sparse graph tracker},
  author={Hyun, Jeongseok and Kang, Myunggu and Wee, Dongyoon and Yeung, Dit-Yan},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
  pages={4850--4859},
  year={2023}
}

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 430
Function 156
Class 97

Languages

Python100%

Modules by API surface

projects/CenterNet/centernet/losses.py32 symbols
projects/CenterNet/centernet/modeling/backbone/dla.py30 symbols
projects/Datasets/Transforms/transform.py27 symbols
projects/CenterNet/centernet/modeling/backbone/hourglass.py26 symbols
projects/EpochTrainer/epoch_trainer/default_epoch_trainer.py24 symbols
projects/Datasets/Transforms/augmentation.py23 symbols
projects/Datasets/MOT/evaluation/mot_evaluation.py23 symbols
projects/SGT/sgt/meta_arch/graph_net.py19 symbols
projects/Datasets/MOT/build.py19 symbols
projects/FairMOT/fairmot/tracker/multitracker.py18 symbols
projects/SGT/sgt/meta_arch/graphtracker.py16 symbols
projects/SGT/sgt/utils.py14 symbols

For agents

$ claude mcp add SGT \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page