GeekAlexis / FastMOT

High-performance multiple object tracking based on YOLO, Deep SORT, and KLT 🚀
MIT License
1.12k stars 256 forks source link

Custom Detector (YoloX, YoloR, CentreDet) Integration #186

Open edmuthiah opened 2 years ago

edmuthiah commented 2 years ago

Hey again @GeekAlexis

Great work on the repo so far. I would like to contribute by adding a few custom models like centrenet, yolor, yolox.

I know that these models need to be converted to ONNX or TensorRT first, perhaps using torch2trt. Could you please provide some general steps as to how to achieve this? From my understanding we need to do the following:

Thanks! I'll probably start with YoloX which already has TensorRT support

GeekAlexis commented 2 years ago

The general workflow is correct. Also it is recommended to use the same ONNX -> TensorRT conversion.

You also want to create yolox.py or yolor.py for ONNX to TRT conversion. If extra TRT plugins are required, they need to be accounted for as well.

What is YOLOX’s advantages over Scaled-YOLOv4?

edmuthiah commented 2 years ago

The usual claims of being better, faster, stronger haha

https://towardsdatascience.com/how-to-train-yolox-on-a-custom-dataset-bb2f94cdb038

Screenshot_20210826-154643_Drive.jpg

I'm just curious to try out and compare several different detectors.

GeekAlexis commented 2 years ago

Performance looks similar to yolov4-csp-swish but it might be worth a try. You can try using torch2trt in yolox.py if it doesn’t add too many dependencies.