• Stars
    star
    237
  • Rank 168,947 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

YOLO: You only look once real-time object detector

YOLO-v2: Real-Time Object Detection

Still under development. 71 mAP(darknet) and 74mAP(resnet50) on VOC2007 achieved so far.

This is a pre-released version.

What's new

This repo is now deprecated, I am migrating to the latest Gluon-CV which is more user friendly and has a lot more algorithms in development.

  • Pretrained YOLOv3 models which achiveve 81%+ mAP on VOC and near 37% mAP on COCO: Model Zoo.

  • Object Detection model tutorials.

This repo will not receive active development, however, you can continue use it with the mxnet 1.1.0(probably 1.2.0).

Disclaimer

This is a re-implementation of original yolo v2 which is based on darknet. The arXiv paper is available here.

Demo

demo1

Getting started

  • Build from source, this is required because this example is not merged, some custom operators are not presented in official MXNet. Instructions
  • Install required packages: cv2, matplotlib

Try the demo

  • Download the pretrained model(darknet as backbone), or this model(resnet50 as backbone) and extract to model/ directory.
  • Run
# cd /path/to/mxnet-yolo
python demo.py --cpu
# available options
python demo.py -h

Train the model

cd /path/to/where_you_store_datasets/
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar
# Extract the data.
tar -xvf VOCtrainval_11-May-2012.tar
tar -xvf VOCtrainval_06-Nov-2007.tar
tar -xvf VOCtest_06-Nov-2007.tar
ln -s /path/to/VOCdevkit /path/to/mxnet-yolo/data/VOCdevkit
  • Create packed binary file for faster training
# cd /path/to/mxnet-ssd
bash tools/prepare_pascal.sh
# or if you are using windows
python tools/prepare_dataset.py --dataset pascal --year 2007,2012 --set trainval --target ./data/train.lst
python tools/prepare_dataset.py --dataset pascal --year 2007 --set test --target ./data/val.lst --shuffle False
  • Start training
python train.py --gpus 0,1,2,3 --epoch 0
# choose different networks, such as resnet50_yolo
python train.py --gpus 0,1,2,3 --network resnet50_yolo --data-shape 416 --pretrained model/resnet-50 --epoch 0
# see advanced arguments for training
python train.py -h

More Repositories

1

mxnet-ssd

MXNet port of SSD: Single Shot MultiBox Object Detector. Reimplementation of https://github.com/weiliu89/caffe/tree/ssd
Python
764
star
2

ICCV19-GluonCV

Tutorial Materials for ICCV19
Jupyter Notebook
278
star
3

mxnet-ssd.cpp

C++ object detection module for mxnet-ssd
C++
95
star
4

zupply

Essential light-weight portable C++ 11 library dealing with images/files/systems for researches and demos
C++
43
star
5

cvpr2020-videomodeling-deployment

Materials for demonstrating video model deployment
C++
16
star
6

mini-amazon-go

Computer Vision Hackathon: Mini Amazon Go
Jupyter Notebook
12
star
7

opencv-bootstrap

OpenCV Visual Studio/Eclipse/Makefile project generator
CMake
12
star
8

AutoGluon-Tutorial

Hands-on tutorials for AutoGluon
Jupyter Notebook
9
star
9

PersonReIdentification

Reserach for person re-identification
C++
8
star
10

autocfg

All you need is a minimal config system for automl
Python
7
star
11

ComicViewer

PHP Comic/Manga Viewer server
JavaScript
6
star
12

GTC2020-AutoGluonCV

Materials for Nvidia GTC 2020: From HPO to NAS: Scalable autonomous deep learning for computer vision
Jupyter Notebook
6
star
13

yolo-demo-server

Demo server backbone with yolo detection model
C
6
star
14

gluoncv-distro

PyPI for gluonvision
Python
3
star
15

synthetic-pokemon

Synthetic tool for generating tons of pokemons! with random pose and background
JavaScript
2
star
16

mxnet-distro-win

MXNet python package for windows
Batchfile
2
star
17

gluoncv-sagemaker-serving

SageMaker serving for GluonCV models
Python
1
star
18

gluoncv-sagemaker-examples

Examples for using gluoncv model listings
Jupyter Notebook
1
star
19

adaBoost

Simple ada-boost training/testing module
C++
1
star
20

OpenZL

Open EZ Library for CV projects
C++
1
star
21

FaceReco

Face Recognition for iOS
Objective-C++
1
star