Code Monkey home page Code Monkey logo

simple_detectron2_efficientdet's Introduction

A simple Detectron2 EfficientDet (working in progress)

update 2020/11/3: There are still some hidden bugs in the code, but due to lack of GPU, I can't continue the experiments

This repository is a simple detectron2 based implementation of EfficientDet

Requirements:

  • python>=3.5
  • detectron2

Getting Started

  1. Install detectron2

  2. Download COCO dataset and put annotations, train2017, val2017 (or create symlinks) into DETECTRON2_PATH/datasets/coco

  3. Clone this repo:

    git clone https://github.com/zzzxxxttt/simple_detectron2_efficientdet /path/to/efficientdet
    
  4. Download the pretrained EfficientNet weights. For example, you downloaded the EfficientNet-B0 weights and name it as b0.pth, run the following codes in python console:

    >>> import torch
    >>> ckpt = torch.load('b0.pth', map_location = 'cpu')
    >>> ckpt = {'model': ckpt, 'matching_heuristics': True}
    >>> torch.save(ckpt, 'b0_detectron2.pth')
  5. Start training:

    python train_net.py --config-file configs/EfficientDet_D0.yaml MODEL.WEIGHTS /path/to/checkpoint_file
    

Results

Model mAP (val, 100 epochs) mAP (val, 300 epochs) paper mAP (val, 300 epochs)
EfficientDet-D0 31.9% 32.4% 33.5%

simple_detectron2_efficientdet's People

Contributors

zzzxxxttt avatar

Watchers

 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.