question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DETR tutorials to use it on custom data :)

See original GitHub issue

Some months ago, I’ve added DETR to HuggingFace Transformers 🤗 I’ve replaced the original torchvision backbones (ResNets) such that you can use any backbone available in the timm repository (like EfficientNets or MobileNets etc.) 🥳 The model is implemented using the same API as other models in HuggingFace like BERT (i.e. you have DetrModel which is the encoder-decoder Transformer without any head on top, DetrForObjectDetection which has the object detection and class labels classifier heads on top and DetrForSegmentation, which adds the mask head on top).

The model weights are hosted on the HuggingFace hub. The documentation can be found here: https://huggingface.co/transformers/model_doc/detr.html

I’ve made 5 different notebooks, illustrating how to use DETR both for inference and training on custom data, both for object detection and panoptic segmentation. You can find them here: https://github.com/NielsRogge/Transformers-Tutorials

I’ve also made a notebook for evaluating the model on COCO. Hope it helps for people to easily use DETR!

Issues for which this might be helpful:

#421 #419 #378 #366 #341 #307 #205 #190 #179 #153 #152 #148 #141 #125 #111 #109 #89 #84 #53 #40 #28 #21 #14 #9

PS the most epic thing was Yann LeCun himself tweeting about this: https://twitter.com/ylecun/status/1405640394143113219

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:18
  • Comments:9

github_iconTop GitHub Comments

2reactions
NielsRoggecommented, Sep 6, 2021

Yes, it takes 30 minutes per epoch if you have 8 GPUs, as stated in the README. On a single GPU, it will take a bit longer. 😉

0reactions
ver0zcommented, Nov 18, 2021

So if I pass a big number of batch could it be useful in this case ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Training DETR on Your Own Dataset - Towards Data Science
What is DETR? What sets it apart in the world of object detection algorithms? And how do you train it with your own...
Read more >
Training DETR model on custom dataset Code - YouTube
[ Tutorial ] Training End-to-end Object Detection with Transformer( DETR ) model on custom dataset · Key moments. View all · Key moments...
Read more >
DETR — transformers 4.11.3 documentation - Hugging Face
In short, one should prepare the data either in COCO detection or COCO panoptic format, then use DetrFeatureExtractor to create pixel_values , pixel_mask...
Read more >
Inference your Object Detection Transformer (DETR) custom ...
Hello and welcome to a new tutorial! In this tutorial we find ourselves deploying a custom trained DETR model for Object Detection using...
Read more >
[P] Tutorial on how to train DETR model on custom dataset
Video Tutorial https://youtu.be/RkhXoj_Vvr4 Code https://github.com/thedeepreader/detr_tutorial.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found