Skip to content

tadax/m2det

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 Work in Progress 🚧

M2Det

An implementation of Q Zhao et al., "M2Det: A Single-Shot Object Detector based on Multi-Level Feature Pyramid Network", 2019 using TensorFlow.

Results

COCO 2017 dataset is used for training.

Performance

To be released.

Usage

Requirements

  • Python 3.6
  • TensorFlow 1.8

Model

⚠️ Notice: it's work in progress.

You can download the trained model [weights_2019-01-31].

To be released before long.

Run Demo

$ python demo.py --inputs <image_path> --model_path <model_path>

How to Train

I. Prepare dataset

Download COCO (2017) dataset from http://cocodataset.org and process them:

$ python mscoco/process.py --image_dir <image_dir> --annotation_path <annotation_dir> --output_dir <output_dir>

II. Train model

$ mkdir weights
$ python train.py --image_dir <image_dir> --label_dir <label_dir>

Note

With vs. without ImageNet pre-training

ImaneNet pre-training is not used.

cf. Kaiming He et al., "Rethinking ImageNet Pre-training", 2018

Learning rate scheduling

To be written.

License

MIT License

Copyright (c) 2019 tadax

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

M2Det implementation using TensorFlow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages