Skip to content
프로젝트

Qidian213/deep_sort_yolov3 has 1,676 GitHub stars and 582 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-21 09:11 UTC. Last push 2021-03-22.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

Real-time Multi-person tracker using YOLO v3 and deep_sort with tensorflow

머신러닝

README.md

Original

QQ group: 姿态检测&跟踪 781184396

注意: 本代码创建时间较为久远,软件版本较老,很多模块功能不够高效,功能简单。 推荐使用别的作者实现的Pytorch版本等。

Some excellent related work

1, https://github.com/xingyizhou/CenterTrack

2, https://github.com/phil-bergmann/tracking_wo_bnw

3, https://github.com/Zhongdao/Towards-Realtime-MOT

4, https://github.com/ifzhang/FairMOT

5, https://github.com/pjl1995/CTracker

Introduction

Thanks for these projects, this work now is support tiny_yolo v3 but only for test, if you want to train you can either train a model in darknet or in the second following works. It also can tracks many objects in coco classes, so please note to modify the classes in yolo.py. besides, you also can use camera for testing.

https://github.com/nwojke/deep_sort

https://github.com/qqwweee/keras-yolo3

https://github.com/Qidian213/deep_sort_yolov3

Quick Start

  1. Download YOLOv3 or tiny_yolov3 weights from YOLO website.Then convert the Darknet YOLO model to a Keras model. Or use what i had converted https://drive.google.com/file/d/1uvXFacPnrSMw6ldWTyLLjGLETlEsUvcE/view?usp=sharing (yolo.h5 model file with tf-1.4.0) , put it into model_data folder

  2. Run YOLO_DEEP_SORT with cmd :

    python demo.py
    
  3. (Optional) Convert the Darknet YOLO model to a Keras model by yourself:

 please download the weights at first from yolo website. 
 python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5

Dependencies

The code is compatible with Python 2.7 and 3. The following dependencies are needed to run the tracker:

NumPy
sklean
OpenCV
Pillow

Additionally, feature generation requires TensorFlow-1.4.0.

Training the model

To train the deep association metric model on your datasets you can reference to https://github.com/nwojke/cosine_metric_learning approach which is provided as a separate repository.

Be careful that the code ignores everything but person. For your task do not forget to change :

[deep_sort_yolov3/yolo.py] Lines 100 to 101 :

      if predicted_class != 'person' : 
           continue 

Note

You can use any Detector you like to replace Keras_version YOLO to get bboxes , for it is to slow !

Model file model_data/mars-small128.pb need by deep_sort had convert to tensorflow-1.4.0

Deep sort 程序结构见 “model_data/DeepSORT”,如有错误欢迎联系修改。

Test only

Speed : when only run yolo detection about 11-13 fps , after add deep_sort about 11.5 fps (GTX1060 6G)

Test result video : https://www.bilibili.com/video/av23500163/ generated by this project