PyTorch training code and pretrained models for DETR (DEtection TRansformer). We replace the full complex hand-crafted object detection pipeline with a Transformer, and match Faster R-CNN with a ResNet-50, obtaining 42 AP on COCO using half the computation power (FLOPs) and the same number of parameters. Inference in 50 lines of PyTorch. What it is. Unlike traditional computer vision techniques, DETR approaches object detection as a direct set prediction problem. It consists of a set-based global loss, which forces unique predictions via bipartite matching, and a Transformer encoder-decoder architecture. Given a fixed small set of learned object queries, DETR reasons about the relations of the objects and the global image context to directly output the final set of predictions in parallel. Due to this parallel nature, DETR is very fast and efficient.

Features

  • DETR is very simple to implement and experiment with
  • We provide baseline DETR and DETR-DC5 models
  • The models are also available via torch hub
  • There are no extra compiled components in DETR and package dependencies are minimal
  • We train DETR with AdamW setting learning rate in the transformer to 1e-4 and 1e-5 in the backbone
  • We show that it is relatively straightforward to extend DETR to predict segmentation masks

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow DETR

DETR Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DETR!

Additional Project Details

Programming Language

Python

Related Categories

Python Object Oriented Software, Python Image Recognition Software, Python Computer Vision Libraries, Python Object Detection Models

Registered

2021-08-04