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

Any plan support RT-DETR? #10186

Open
zugofn opened this issue Apr 19, 2023 · 16 comments · May be fixed by #10498
Open

Any plan support RT-DETR? #10186

zugofn opened this issue Apr 19, 2023 · 16 comments · May be fixed by #10498
Assignees

Comments

@zugofn
Copy link

zugofn commented Apr 19, 2023

Describe the feature

Motivation
There is a recent paper https://arxiv.org/abs/2304.08069 which is very helpful for Object Detection in DETR style.
The proposed RT-DETR-L achieves 53.0% AP on COCO val2017 and 114 FPS on T4 GPU, while RT-DETR-X achieves 54.8% AP and 74 FPS, outperforming all YOLO detectors of the same scale in both speed and accuracy.

Related resources
The official code release.
https://github.com/PaddlePaddle/PaddleDetection/tree/develop/configs/rtdetr

Additional context
Add any other context or screenshots about the feature request here.
If you would like to implement the feature and create a PR, please leave a comment here and that would be much appreciated.

@futurev
Copy link

futurev commented Apr 24, 2023

+1 for this

1 similar comment
@MINGtoMING
Copy link

+1 for this

@glenn-jocher
Copy link

glenn-jocher commented May 13, 2023

We've implemented RT-DETR now in ultralytics! Here's an example:

Install Ultralytics

pip install ultralytics

Predict with RT-DETR

from ultralytics import RTDETR

# Load the model
model = RTDETR("rtdetr-l.pt")

# Run inference
results = model.predict("https://ultralytics.com/images/bus.jpg")

For details see https://docs.ultralytics.com/models/rtdetr

@MINGtoMING
Copy link

@glenn-jocher Thanks, amazing speed, too curly!

@MINGtoMING
Copy link

@glenn-jocher Does it already support training, or does it currently support inference?

@AyushExel
Copy link

It supports prediction and validation currently. We'll work on supporting training soon

@nijkah
Copy link
Contributor

nijkah commented Jun 13, 2023

#10498
Stay tuned please 😄

@nijkah nijkah linked a pull request Jun 13, 2023 that will close this issue
4 tasks
@op-newman
Copy link

im waitingggggg

@Zunon
Copy link

Zunon commented Jun 15, 2023

@nijkah @hhaAndroid is there an ETA regarding this?
I tried to clone the branch in which your pull request is merging, however when I try to run tools/test.py on the config and model, I get the following error:

Traceback (most recent call last):
  File "C:\<omitted>\mmrtdetr\tools\test.py", line 149, in <module>
    main()
  File "C:\<omitted>\mmrtdetr\tools\test.py", line 131, in main
    runner = Runner.from_cfg(cfg)
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\runner\runner.py", line 439, in from_cfg
    runner = cls(
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\runner\runner.py", line 406, in __init__
    self.model = self.build_model(model)
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\runner\runner.py", line 813, in build_model
    model = MODELS.build(model)
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\registry\registry.py", line 548, in build
    return self.build_func(cfg, *args, **kwargs, registry=self)
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\registry\build_functions.py", line 250, in build_model_from_cfg
    return build_from_cfg(cfg, registry, default_args)
  File "C:\<omitted>\mmrtdetr\venv\lib\site-packages\mmengine\registry\build_functions.py", line 100, in build_from_cfg
    raise KeyError(
KeyError: 'RTDETR is not in the model registry. Please check whether the value of `RTDETR` is correct or it was registered 
as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'

@nijkah
Copy link
Contributor

nijkah commented Jun 15, 2023

Hi @Zunon , did you run pip install -e . in the cloned branch? The model registry should work if you installed it correctly. I tested right now.

@lyuwenyu
Copy link
Contributor

I provided a clean code version for RT-DETR that you can try if you are interested, including benchmark (tensorrt inference), rtdetr_paddle, rtdetr_pytorch.

For details see https://github.com/lyuwenyu/RT-DETR

@lyuwenyu
Copy link
Contributor

Release pytorch rtdetr, try it in https://github.com/lyuwenyu/RT-DETR/tree/main/rtdetr_pytorch

@op-newman
Copy link

发布pytorch rtdetr,在https://github.com/lyuwenyu/RT-DETR/tree/main/rtdetr_pytorch中尝试一下

thank you! the next work is train in cocodataset.

@HaoLiuHust
Copy link

any progress?

@dhddxdhd
Copy link

mm系列会更新rt-detr吗,非常期待

@GGD777
Copy link

GGD777 commented May 30, 2024

嗨,你在克隆的分支中跑了吗?如果正确安装,模型注册表应该可以正常工作。我现在测试了。pip install -e .
Uploading 736a474fce8350c6ef82ad52ea58305.png… Could you tell me how to register?

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

Successfully merging a pull request may close this issue.