Coder Social home page Coder Social logo

cedrickchee / ssd-yolo-retinanet Goto Github PK

View Code? Open in Web Editor NEW
17.0 6.0 8.0 30 KB

Multi-class object detection pipeline—Single Shot MultiBox Detector (SSD) + YOLOv3 (real-time) + focal loss (RetinaNet) + Pascal VOC 2007 dataset

Python 96.95% Shell 3.05%
object-detection-pipelines object-detection yolov3 pytorch-implemention retinanet deeplearning

ssd-yolo-retinanet's Introduction

Realtime Multi-object Detection Pipeline

Note: this repo is currently under heavy development. It's not ready for general consumption. So, please refrain yourself from using it in production.

The goal of this project is to buid a single end-to-end deep learning model for more accurate and faster (near real-time) multi-object detection that can be train in single-pass of multiple different pieces:

  • Single Shot MultiBox Detector (SSD)
  • YOLOv3 real-time properties
  • Focal loss for dense object detection (RetinaNet)
  • Non Maximum Suppression (NMS)
  • Scalable object detection using deep neural networks
  • Faster R-CNN tricks

These techniques and methods from various research papers will be implemented using PyTorch.

We will be using Pascal VOC2007 dataset.

Requirements

  • Python 3
  • Pytorch 0.4
  • numpy
  • fastai PyTorch library

Training

# Select the script that you want to train for reproducing a results
./retina_ce_sgd_0.001.sh
# For the focal loss use ./retina_focal_sgd_0.0001.sh

You can see the details in trainer.py

VOC Dataset

Download VOC2007 trainval & test
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2007.sh # <directory>
Download VOC2012 trainval
# specify a directory for dataset to be downloaded into, else default is ~/data/
sh data/scripts/VOC2012.sh # <directory>

TODO

  • Build SSD + YOLO model
  • Apply cross entropy loss and focal loss
  • Compare between CE loss and focal loss
  • Report results on VOC
    • currently achieved 50mAP on VOC2007.
  • Report results on COCO
  • Use relative path for easy reproducing of result

ssd-yolo-retinanet's People

Contributors

cedrickchee avatar jtlee90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ssd-yolo-retinanet's Issues

Hi

Does the "50%mAP on VOC2007" you mentioned in TODO refer to YOLOV3?

OHEM and focal loss, which is better?

Hi, is the focal loss works in SSD? How much improvement is reached in VOC2007 evaluation when SSD is trained with focal loss? I want to know whether the focal loss performs better than OHEM(used in original SSD). Thank you!

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.