Code Monkey home page Code Monkey logo

eva6_session14_detr_part1's Introduction

DEtection TRansformer (DETR)

DEtection TRansformer is a deep learning based object detection solution provided by Facebook. It utilizes Transformers to generated predictions of objects and their position in an image.

To quote the authors from their paper:

We present a new method that views object detection as a direct set prediction problem. Our approach streamlines the detection
pipeline, effectively removing the need for many hand-designed components like a non-maximum suppression procedure or anchor 
generation that explicitly encode our prior knowledge about the task. The main ingredients of the new framework, 
called DEtection TRansformer or DETR, are a set-based global loss that 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. 
The new model is conceptually simple and does not require a specialized library, unlike many other modern detectors. 
DETR demonstrates accuracy and run-time performance on par with the well-established and highly-optimized Faster RCNN 
baseline on the challenging COCO object detection dataset. Moreover, DETR can be easily generalized to produce panoptic 
segmentation in a unified manner. We show that it significantly outperforms competitive baselines.

DETR Architecture

detr_architecture

DETR uses a conventional CNN backbone to learn a 2D representation of an input image(in our case, a resnet50 till the last convolution layer). The model flattens it and supplements it with a positional encoding before passing it into a transformer encoder. A transformer decoder then takes as input a small fixed number of learned positional embeddings, which we call object queries, and additionally attends to the encoder output. We pass each output embedding of the decoder to a shared feed forward network (FFN) that predicts either a detection (class and bounding box) or a “no object” class.

Typically, We use output generated by the bockbone with channel size as 2048 and height and width as H/32 and W/32, where H and W are the original image height and width.

Encoder - Decoder

detr_transformer

Object Queries

Bipartite Loss

Contributors

Abhiram Gurijala
Arijit Ganguly
Rohin Sequeira

eva6_session14_detr_part1's People

Contributors

rohinsequeira avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.