GithubHelp home page GithubHelp logo

bermanra / deformable-detr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiangxiluning/deformable-detr

0.0 0.0 0.0 314 KB

This is an implementation of Deformable-DETR

License: Apache License 2.0

Dockerfile 0.15% Python 99.70% Shell 0.14%

deformable-detr's Introduction

Deformable-DETR: Deformable Transformers for End-to-End Object Detection

Deformable-DETR

This an implementation of Deformable-DETR. Codes are based on DETR project. My code is inspired by his/her work. Many thanks.

Preparation

For DETR stuffs, etc. data preparation, evaluation, and others , please refer to DETR.

Training

My machine is equipped with two GTX 2080TIs. Below is the training script for DDP training.

bash train.sh

For single gpu training, try the code below

python main.py
--output_dir my_output \
--coco_path ~/dev/data/coco \
--lr 0.0002 \
--lr_backbone 0.00001 \
--num_queries 300 \
--batch_size 1 \
--enc_layers 6 \
--dec_layers 6 \
--no_aux_loss \
--amp

If you do not need AMP, just remove this flag.

Change logs

  • 2020-11-30

    • add focal loss for classification
  • 2020-11-29

    • integrate MS-Deformable-Attention into DETR architecture
    • modify transfomer's implementation to be adapted to Deformable-Attention
    • add image mask to MS-Deformable-Attention
    • add automatic mixed precision training
    • use adam for the optimizer
    • change lr for projection layers
  • 2020-11-24

    • add scale embedding
    • change remove outer loop for scales
    • add backbone modifications for returning multi-scale feature maps
    • add test code for using Deformable-Attention module
  • 2020-11-22

    • add Multi-scale Deformabe Attention Module

deformable-detr's People

Contributors

jiangxiluning 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.