models/rtdetr/ #8113
Replies: 28 comments 67 replies
-
Would love OBB support for RT-DETR! |
Beta Was this translation helpful? Give feedback.
-
What is the default optimizer RT-DETR use? |
Beta Was this translation helpful? Give feedback.
-
Dear glenn, Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello there!!🖐️🖐️, `import cv2 video_path = 0 window_width = 640 while cap.isOpened():
cap.release() Here best.pt is the model that I have trained and currently am using. I don't know why I am getting such high inference time. My computer specifications are intel i5 processor and Nvidia gtx 1650 gpu. Is it because my Computer isn't powerful enought to run the model at satisfactory rate or is it because I have trained my model on less data, I have zero idea. Your insight on this will be highly appreciated and would really help me in completing theis project on time. |
Beta Was this translation helpful? Give feedback.
-
Hi all, |
Beta Was this translation helpful? Give feedback.
-
Hi guys! When is RT-DETR 18 due to be implemented? Thanks for your work :)) |
Beta Was this translation helpful? Give feedback.
-
Hi there! I am getting nan values during training when finetuning the rtdetr-l model. I therefore want to modify the learning rate to see if that help, however, using optimizer = torch.optim.AdamW(model.parameters(), lr=0.001) does not seem to do anything the model just use whatever ultralytics sets automatically. Any way to force a custom learning rate when doing finetuning? |
Beta Was this translation helpful? Give feedback.
-
Do you mean doing just "model_x.save('fine_tuned_rtdetrtop6.pt')"? I also tried that (as in the image provided) but I end up saving the old pt file (non fine-tuned version) essentially just giving it a new filename. |
Beta Was this translation helpful? Give feedback.
-
WARNING How to pass scale? |
Beta Was this translation helpful? Give feedback.
-
Issue While performing Detection After the model. I have trained a model on two classes and when I try to run inference on it, it gives me the following error:
--> 327 log_string += f"{n} {self.names[int(c)]}{'s' * (n > 1)}, " File "/home/biosense/anaconda3/envs/rana/lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 172, in write_results I have specefically given 2 classes, but still this is the error I am encountering |
Beta Was this translation helpful? Give feedback.
-
I'm trying to run the model with coco dataset. But i always got warnings, such as :
COCO json annotation filestrain_ann: C:/Users/ASUS/rt-detr_custom/labels/instances_train.json Classesnc: 12 I don't know what is the main problem. Your insight on this will be highly appreciated and would really help me in completing theis project on time. Thank you |
Beta Was this translation helpful? Give feedback.
-
when i want use rtdetr to predict: Traceback (most recent call last):
File "c:\Users\Orca-Xray\Desktop\anyWhere\ultralytics\engine\model.py", line 945, in _smart_load
return self.task_map[self.task][key]
~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'RTDETR'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users\Orca-Xray\Desktop\anyWhere\detect.py", line 4, in <module>
results = model(
^^^^^^
File "c:\Users\Orca-Xray\Desktop\anyWhere\ultralytics\engine\model.py", line 182, in __call__
return self.predict(source, stream, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Orca-Xray\Desktop\anyWhere\ultralytics\engine\model.py", line 482, in predict
self.predictor = predictor or self._smart_load("predictor")(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Orca-Xray\Desktop\anyWhere\ultralytics\engine\model.py", line 949, in _smart_load
raise NotImplementedError(
NotImplementedError: WARNING 'RTDETR' model does not support 'predict' mode for 'RTDETR' task yet. this is my code : from ultralytics import RTDETR
model = RTDETR(r"my\rtdetr-x\weights\best.pt")
results = model(
r"\datasets\images\test\00aade90-3c29-4696-8983-e8936e6fa574.jpg"
)
results[0].show() |
Beta Was this translation helpful? Give feedback.
-
Hey there, thanks for great job for both ultralytics and RT-DETR! |
Beta Was this translation helpful? Give feedback.
-
Which license is used for this model and the codes of the class RTDETR in ultralytics, AGPL-3 or Apache 2? |
Beta Was this translation helpful? Give feedback.
-
I'm wondering in preprocessing the image do you need to do ImageNet normalization for preprocessing. You do for DETR (transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])). I'm unclear |
Beta Was this translation helpful? Give feedback.
-
I had this issue when i wanted to export the RTDETR model to TensorRT version. model_path ="my_model.pt"
model = RTDETR(model_path)
imgsz = 960
batch = 1
model.export(
format="engine",
imgsz=imgsz,
half=True,
dynamic=False,
batch=batch,
device=0, # RTX 6000) Error:
|
Beta Was this translation helpful? Give feedback.
-
When can we provide pre-training weights for resnet50 and resnet101😍 |
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to know the difference between RT-DETR-50,101 that are mentioned in the paper and the large and x-large models introduced by ultrlaytics. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, In validation phase ( model.val() ) , I am trying to save a couple of results as in YOLOv10, with the arguments save_json, save_txt, save_conf and so on. However, all of these arguments seem to cause an error in RT-DETR. Is there an alternative way to get the validation predictions? Also, I have noticed that the default confidence value varies based on the phase of the model (traininng, val etc.). Is there an explanation for that besides designer's choice? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi
I thought the error occurred because the size of max_det was bigger than max_scores in def v10postprocess in ultralytics/utils/ops.py.
It turned out that when I use YOLOv10 for inference, it prints out max_det: 300, max_scores size: 5040 but for RT-DETR, it prints out max_det: 300, max_scores size: 10. So it was mainly because 'max_det' was bigger than 'max_scores'. |
Beta Was this translation helpful? Give feedback.
-
How many parameters are in RT-DETR-L and RT_DETR-X? |
Beta Was this translation helpful? Give feedback.
-
Hello! Thank you very much for your work! I would like to know whether the RT-DETR here is exactly the same as the official weight and training code, and re-detr has updated version 2.0. Do you have plans to update it? Thank you for your reply! |
Beta Was this translation helpful? Give feedback.
-
Hi there, Just wondering when you guys going to add rt-detr-2 here?? |
Beta Was this translation helpful? Give feedback.
-
I’m currently evaluating the RT-DETR model for potential use in a project and would like to clarify a few details regarding its licensing and application. Could you please let me know:
Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi,
It's okay to use for commercial purposes. It comes with Apache License.
https://github.com/lyuwenyu/RT-DETR/blob/main/LICENSE
[image: image.png]
…On Wed, Nov 20, 2024 at 12:47 PM Samuel Lima Braz ***@***.***> wrote:
I’m currently evaluating the RT-DETR model for potential use in a project
and would like to clarify a few details regarding its licensing and
application.
Could you please let me know:
- What is the specific license governing the RT-DETR model?
- Are there any restrictions or guidelines on how it can be used in
commercial or non-commercial projects?
Thanks
—
Reply to this email directly, view it on GitHub
<#8113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLUPB2PCBOX4ZBTIYYSTBDD2BTKL5AVCNFSM6AAAAABDBKSQZ2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZSG4ZTQOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Can I use RT-DETR for my custom dataset? |
Beta Was this translation helpful? Give feedback.
-
I am trying to train with RTDETR using 2 GPUs. don't know why I am having this error after some epochs. 0%| | 0/407 [00:00<?, ?it/s]/opt/conda/lib/python3.10/site-packages/torch/autograd/graph.py:768: UserWarning: grid_sampler_2d_backward_cuda does not have a deterministic implementation, but you set 'torch.use_deterministic_algorithms(True, warn_only=True)'. You can file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize adding deterministic support for this operation. (Triggered internally at /usr/local/src/pytorch/aten/src/ATen/Context.cpp:83.)
|
Beta Was this translation helpful? Give feedback.
-
Hi, What is the required format for the labels, JSON or YOLO? Eran |
Beta Was this translation helpful? Give feedback.
-
models/rtdetr/
Discover the features and benefits of RT-DETR, Baidu’s efficient and adaptable real-time object detector powered by Vision Transformers, including pre-trained models.
https://docs.ultralytics.com/models/rtdetr/
Beta Was this translation helpful? Give feedback.
All reactions