Skip to content

A simple implementation of EfficientDet based on Detectron2 framework

Notifications You must be signed in to change notification settings

zzzxxxttt/simple_detectron2_EfficientDet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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%

About

A simple implementation of EfficientDet based on Detectron2 framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages