Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edmuthiah opened this issue Aug 25, 2021 · 3 comments
Open

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

edmuthiah opened this issue Aug 25, 2021 · 3 comments

Comments

@edmuthiah
Copy link

edmuthiah commented Aug 25, 2021

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:

  • Convert to TensorRT engine by adding to /fastmot/models/
  • Add custom model params to /fastmot/cfg/mot.json
  • Create detector in /fastmot/detector.py

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

@GeekAlexis
Copy link
Owner

GeekAlexis commented Aug 26, 2021

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
Copy link
Author

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
Copy link
Owner

GeekAlexis commented Aug 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants