Git Product home page Git Product logo

detr.detectron2's Introduction

DETR based on Detectron2

Instructions

  1. Follow detectron2's readme to install detection2
  • cd DETR.detectron2
  • python setup.py build develop
  • link dataset path to DETR.detectron2/datasets/
  1. Train DETR
  • python projects/DETR/train_net.py --num-gpus 8 --config-file projects/DETR/configs/detr.res50.coco.multiscale.150e.yaml: use MSRA pretrain weights
  1. Evaluate DETR using provided weights here
  • python projects/DETR/train_net.py --num-gpus 8 --config-file projects/DETR/configs/detr.res50.coco.multiscale.150e.yaml --eval-only MODEL.WEIGHTS path/to/provided/ckpt.pth
  1. For faster training:
  • python projects/DETR/train_net.py --num-gpus 8 --config-file projects/DETR/configs/detr.res50.coco.multiscale.150e.bs48.yaml Using a 8x2080ti server, 150 epochs take about 3 day 6 hours.

Results

config COCO AP Paper Checkpoint
detr.res50.coco.multiscale.150e.yaml 38.6 without RC 39.5 with RC LINK

"RC" means RandomCrop, it brings about 1% AP improvements accroding to paper.

Disclaimer

  • I haven't add RandomCrop.
  • I haven't add support for segmentaion, but it can be easily added.

Advantage

  • Training faster
  • Avoid memory leaking in official implementation
  • Use backbone in detectron2

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.