Git Product home page Git Product logo

yolov3-in-pytorch's Introduction

This implementation is not 100% same with the original version !

The diffrence between this repo and the original YOLOv3:

  1. Using Resnet50 as detection backbone instead of Darknet53.
  2. Switch the individual binary classifier with softmax cross-entropy loss

Things that have been done:

  1. Full pytorch and numpy implementation of YOLOv3 training and detection
  2. Pytorch 0.4 codes
  3. Multi-Scale Training mentioned in the paper -> so far as I noticed, this one is not implemented by a lot of posts about yolo out there.
  4. lots of data augmentation,thanks to imgaug:
  5. training in coco2017 dataset

How to use

First, clone this repo by input:

git clone https://github.com/TreB1eN/Yolov3-in-Pytorch.git

Detection:

  1. Secondly, download the trained model from cloud drive into data/model folder

  2. For detection in single image, please run

python detect_on_image.py -f input_image_path -o output_image_path -l detection_level
  1. For detection in video, please run
python detect_on_video.py -f input_video_path -o output_video_path -l detection_level
  1. For detection in camera, please run
python detect_on_camera.py -l detection_level

Training:

  1. download train2017.zip, val2017.zip and annotations_trainval2017.zip from coco website to data/coco2017
  2.  unzip data/coco2017/train2017.zip
     unzip data/coco2017/val2017.zip
     unzip data/coco2017/annotations_trainval2017.zip
    
  3. run
    python train.py
    
    Details and parameters are in the codes

Video Demo

Demo1 Youtube: , Youku: Demo2 Youtube: , Youku:

Detection Example

img img img

Todo List:

  • Hyperparameters Tuning
  • Multi-GPU Support
  • trained with original Darknet53
  • try Binary Classifier instead of Softmax as discussed in the paper

I dont't have much computing resource, PRs are welcomed !


YOLOv3: An Incremental Improvement


This repo is also inspired by marvis/pytorch-yolo2: and qqwweee/keras-yolo3:

yolov3-in-pytorch's People

Contributors

treb1en avatar

Watchers

 avatar paper2code - bot avatar

Forkers

sztcmtj

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.