GithubHelp home page GithubHelp logo

yolov1's Introduction

YOLOv1

For better performance, this not the same as the original paper.

I achieved 0.684 mAP on VOC07test, 76fps on RTX2080Ti

For better training speed, I changed the backbone from vgg to resnet50. And add a few 1x1 and 3x3 conv to fine-tune the resnet. For better detection for small objects, I change the 7x7 feature maps to 14x14 feature maps and drop the fully connected which has been implemented in the original paper.

avatar

avatar

Trained on VOC2007+VOC2012

model map on VOC07test FPS
YOLO Resnet50 68.4% 76
YOLO original 63.4% 45

Prerequisites

  • pytorch 1.2.0
  • cuda 10.0.1
  • pillow 6.2.1
  • numpy

Quick Start

Download the file

git clone https://github.com/Kevinz-code/YOLOv1.git
python demo.py

And You will find the demo results pictures in

./demo/demo_results

Training

  1. Download VOC2012train and VOC2007train dataset
  2. Download VOC2007test dataset
  3. Put them in the dir
../Image/

To train from scratch, run

python main.py -s 0 

To get parameters help, run

python main.py -h

This will automatically start train on VOC07+12, and test on VOC07 every epochs.

Details

Some parameters setting are very Important. And I spent a long time trying to find these best parameters. For convenience, I list them below.

For Training

learning rate 3e-3, 1e-3
weight_decay 0.0005
miniBatch 16
epoch 30
momentum 0.9

For Testing

confidence_thresh 0.3
nms_thresh 0.26

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.