RT-DETR (Realtime Detection Transformer) - Ultralytics YOLOv8 Docs #2545
Replies: 41 comments 81 replies
|
Hi, How can I download this pretrained checkpoint file? |
|
Hope to support training mode soon! |
|
I wonder will there be any guidance of exporting onnx model then convert to TensorRT? I tried to do so but failed. ONNX with given opset: onnx 1.13.1 opset 17 with code "model.export(device=0,format="tensorrt")"
[05/23/2023-13:54:51] [TRT] [E] ModelImporter.cpp:774: --- End node --- |
|
wait for training mode |
|
Hi there! Just a brief suggestion. Please make sure that your PyTorch version is 2.0 or higher Cheers |
|
Does it have model smaller than Large? Like RT-DETR Medium, RT-DETR Small etc? If pre-trained is not available that is alright but can we do that from scratch? |
|
As the author of RT-DETR, I am very pleased to see this work in ultralytics. Also sharing the news about our latest scaled models (including but not limited to (s, m, l, x). See details. |
|
Hello there, I was training
Is this some bug or did I do something wrong. Thanks for your support~ |
|
Hello, Hope to help. |
|
Hi, was you able to reproduce the training results for |
|
I got an error when training without mosaic |
|
I trained RT-DETR Small (ResNet-18 backbone) model with my single-class custom dataset in the PaddlePaddle platform. |
|
How about the time delay ,someone declare it's very slow
…---Original---
From: ***@***.***>
Date: Wed, Jun 21, 2023 15:05 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ultralytics/ultralytics] RT-DETR (Realtime DetectionTransformer) - Ultralytics YOLOv8 Docs (Discussion #2545)
I trained RT-DETR Small (ResNet-18 backbone) model with my single-class custom dataset in the PaddlePaddle platform.
Training has ended successfully without any errors or problems. The following screenshot demonstrates the final training results.
I trained from scratch and still was able to get the results. It means in Pytorch implementation has some issues.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
Your trained RT-DETR Small module inference time
…---Original---
From: ***@***.***>
Date: Wed, Jun 21, 2023 16:46 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ultralytics/ultralytics] RT-DETR (Realtime DetectionTransformer) - Ultralytics YOLOv8 Docs (Discussion #2545)
what time ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
Thanks
…---Original---
From: ***@***.***>
Date: Wed, Jun 21, 2023 17:01 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ultralytics/ultralytics] RT-DETR (Realtime DetectionTransformer) - Ultralytics YOLOv8 Docs (Discussion #2545)
I you look at my screenshot, you may see 52 FPS. So, inference delay you may calculate accordingly
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
Hello, I want to train an RT-DETR model on my custom dataset (12k images). I used code from the documentation with slight modifications; however, it's behaving strangely. When it comes to caching, it starts executing code again, which seems to be causing the error: Here's my code: If needed, this is the content of :data.yaml I tried to solve this issue by adding |
|
Hello, |
|
I'm facing an issue while training the model with custom data: some loss logs are showing 'nan' values. I've followed the documentation closely. Could this be a mistake on my part, or is it a problem with the implementation? |
|
RT-DETR (Tracker) in simple lines of code @ https://github.com/bharath5673/RT-DETR/blob/main/test.py |
|
Is it possible to run hyperparameter tuning with RT-DETR? |
|
I'm facing an issue while validating the model. According to the training results, when validating during training, I get valbatch0pred.jpg with the correct categories from my dataset. However, when using the 'val' command separately, the result is 0, and the categories are not from my dataset. How to tackle this problem? |
|
Hi , thanks for your nice work ! |
|
Hello. I downloaded model x, and using the same pipeline as YOLO, the training progressed without errors, but at some point it gave me "nan" values in the metrics..... Any thoughts on this? Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass |
|
Hello I would like to use RT-DETR with a project of mine. It already pre trained for many classes from the COCO dataset. I just want the model to classify 10 of those classes and I want to train the model for 10 new classes from OpenImagesV7 dataset. So at the end, I want a model that classifies those 20 classes only. How can I do that most efficiently? |
|
Hello there! with YAML: path: .\dataset and YAML: path: .\dataset and had the error: I tried: with YAML: path: .\dataset and got: I tried: with YAML: path: .\dataset and got: Could you please specify the structure of the dataset (where should labelsbe saved and how to specify the path to them, if needed) and what else is wrong in my attempts? Thanks a lot in advance! |
|
Hello when I run the inference with RT-DETR, """ |
|
Hi, does Ultralytics support training and deployment of smaller versions of rt-detr such as 's' or 'm'. If so do you have configs for that or any example? i suppose paddle config wont work with Ultralytics package out of the box. |
|
Hi, should we expect .pt to .ptl conversion of rt-detr models trained via ultralytics package to perform the same on edge devices like other yolov8 models do? I am getting very weird results for rt-detr model when i convert it to .ptl via torchscript route on mobile. |
|
how to get some pre-trained model list in ultralytics? I think I saw yolo-rtdetr-l.pt somewhere, but I can't find it again. |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RT-DETR (Realtime Detection Transformer) - Ultralytics YOLOv8 Docs
Explore RT-DETR, a high-performance real-time object detector. Learn how to use pre-trained models with Ultralytics Python API for various tasks.
https://docs.ultralytics.com/models/rtdetr/
Tips for
ValueError: matrix contains invalid numeric entrieswhile training.Why is this happening?
This is because there are NaN values produced in training process. The rtdetr training with
amp=Trueis more sensitive than yolo models to custom datasets, probably it's related to the transformer architecture and nms-free design(we might figure out a better solution for this in the future).Suggestion when you encounter this issue.
amp=Falsemanually. (we setamp=Trueby default just like YOLO models to save cuda memory and speed up training.All reactions