From 2acf9cfce217d4441acfd7e1dfd47fa9bdacfd69 Mon Sep 17 00:00:00 2001 From: Feng Ni Date: Mon, 9 Jan 2023 15:35:57 +0800 Subject: [PATCH] [MOT] add centertrack and refine centernet (#7510) * add centertrack base codes * fix deploy and docs * fix tracker * fix * fix pre_img * fix deploy * fix --- README_cn.md | 11 +- README_en.md | 1 + configs/mot/README.md | 27 +- configs/mot/README_en.md | 22 + configs/mot/centertrack/README.md | 1 + configs/mot/centertrack/README_cn.md | 156 ++++++ .../centertrack/_base_/centertrack_dla34.yml | 57 ++ .../centertrack/_base_/centertrack_reader.yml | 75 +++ .../mot/centertrack/_base_/optimizer_70e.yml | 14 + .../centertrack_dla34_70e_mot17.yml | 66 +++ .../centertrack_dla34_70e_mot17half.yml | 66 +++ configs/mot/fairmot/_base_/fairmot_dla34.yml | 7 +- .../mcfairmot_dla34_30e_1088x608_visdrone.yml | 1 - ..._1088x608_visdrone_vehicle_bytetracker.yml | 1 - .../pptracking/python/mot/tracker/__init__.py | 8 +- .../python/mot/tracker/center_tracker.py | 143 +++++ deploy/python/infer.py | 11 +- deploy/python/mot_centertrack_infer.py | 505 ++++++++++++++++++ deploy/python/preprocess.py | 22 +- deploy/python/tracker_config.yml | 8 +- deploy/python/utils.py | 56 ++ docs/MODEL_ZOO_cn.md | 4 + docs/MODEL_ZOO_en.md | 4 + ppdet/data/source/coco.py | 8 + ppdet/data/source/dataset.py | 7 + ppdet/data/transform/batch_operators.py | 209 +++++++- ppdet/data/transform/operators.py | 121 ++++- ppdet/engine/export_utils.py | 17 +- ppdet/engine/tracker.py | 76 ++- ppdet/engine/trainer.py | 6 +- ppdet/modeling/architectures/__init__.py | 2 + ppdet/modeling/architectures/centernet.py | 27 +- ppdet/modeling/architectures/centertrack.py | 176 ++++++ ppdet/modeling/backbones/dla.py | 58 +- ppdet/modeling/heads/__init__.py | 4 +- ppdet/modeling/heads/centernet_head.py | 82 +-- ppdet/modeling/heads/centertrack_head.py | 244 +++++++++ ppdet/modeling/mot/tracker/__init__.py | 8 +- ppdet/modeling/mot/tracker/center_tracker.py | 149 ++++++ ppdet/modeling/post_process.py | 67 ++- 40 files changed, 2372 insertions(+), 155 deletions(-) create mode 120000 configs/mot/centertrack/README.md create mode 100644 configs/mot/centertrack/README_cn.md create mode 100644 configs/mot/centertrack/_base_/centertrack_dla34.yml create mode 100644 configs/mot/centertrack/_base_/centertrack_reader.yml create mode 100644 configs/mot/centertrack/_base_/optimizer_70e.yml create mode 100644 configs/mot/centertrack/centertrack_dla34_70e_mot17.yml create mode 100644 configs/mot/centertrack/centertrack_dla34_70e_mot17half.yml create mode 100644 deploy/pptracking/python/mot/tracker/center_tracker.py create mode 100644 deploy/python/mot_centertrack_infer.py create mode 100755 ppdet/modeling/architectures/centertrack.py create mode 100644 ppdet/modeling/heads/centertrack_head.py create mode 100644 ppdet/modeling/mot/tracker/center_tracker.py diff --git a/README_cn.md b/README_cn.md index 1f5eda7ec..a8a659b75 100644 --- a/README_cn.md +++ b/README_cn.md @@ -253,10 +253,10 @@ PaddleDetection整理工业、农业、林业、交通、医疗、金融、能
  • Common