Giter Club home page Giter Club logo

atss-efficientdet-pytorch's Introduction

ATSS-EfficientDet-PyTorch

ATSS-EfficientDet (ATSS built on top of EfficientDet) outperforms the original EfficientDet. Weights are released.

This repository is folked from mmdetection, implemented in PyTorch.

Change log

  • 2020/04/17: Release checkpoint of ATSS-EfficientDet-D0 (COCO-val mAP=33.8). Add config file of ATSS-EfficientDet-D1.

Introduction

There are more applications using Deep Learning in Computer Vision like Image Classification, Object Detection, and Semantic Segmentation. However, Deep Learning models, for example CNN, are too slow. Therefore, more effort is paid in order to make these models running faster.

This work was activated by the EfficientDet-family networks in Object Detection, published by Google team, which consume small GFLOPs without accuracy compensation. Besides, ATSS is a sampling method for Anchor-based architectures (e.g., RetinaNet), aiming at boosting the detection accuracy with only single anchor at each location.

This repository is based on mmdetection and tries to:

  • reimplement EfficientDet in PyTorch
  • build ATSS on top of EfficientDet
  • train ATSS-EfficientDet with small versions (D0, D1)

accessibility text accessibility text
Demo images predicted by ATSS-EfficientDet-D0

See more demo images in demo/atss_effdet_d0

Comparison

Model Weight Params (M) FLOPs (G) COCO-val mAP Original COCO-val mAP
ATSS-EfficientDet-D0 atss_effdet_d0.pth 3.83 2.32 33.8 33.5
ATSS-EfficientDet-D1 6.56 5.65 39.1

Installation

Please refer to the official guildeline of mmdetection in INSTALL.md for installation and dataset preparation.

Training and testing

  • To train model:
scripts/train_coco.sh
  • To test model:
scripts/test_coco.sh

Tips for training on a custom dataset

  • Assume your custom dataset has 10 (foreground) classes (and 1 background class), the num_classes should be 11:
  bbox_head=dict(
  	type='ATSSEffDetHead',
  	num_classes=11,
  ...
  ),
  • Load the released weights as the pretraining:
load_from = "work_dirs/atss_effdet_d0.pth"
  • Learning rate vs. batchsize and number of GPUs:
lr_start = (batchsize * GPUs) / 16 * (1e-2)
lr_end = lr_start / 100
  • Number of epochs: The original config file takes 300 epochs to finalize a cosine learning-rate schedule. If you want to train a custom dataset, you should set a smaller number of epochs.

References

Citation

@article{atssefficientdet,
  title   = {ATSS-EfficientDet: ATSS built on top of EfficientDet},
  author  = {Thuy Nguyen-Chinh},
  journal= {https://github.com/thuyngch/ATSS-EfficientDet-PyTorch},
  year={2020}
}

atss-efficientdet-pytorch's People

Contributors

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