Giter Site home page Giter Site logo

yolo_v2's Introduction

YOLO_v2

This is implementation of YOLO v2 with TensorFlow.

Demo

Installation

  1. Clone YOLO_v2 repository

    $ git clone https://github.com/leeyoshinari/YOLO_v2.git
    $ cd YOLO_v2
  2. Download Pascal VOC2007 dataset, and put the dataset into data/Pascal_voc.

    If you download other dataset, you also need to modify file paths.

  3. Download weights file yolo_weights for COCO, and put weight file into data/output.

    Or you can also download my training weights file YOLO_v2 for VOC.

  4. Modify configuration into yolo/config.py.

  5. Training

    $ python train_val.py
  6. Test

    $ python test_val.py
  7. For more information to wiki.

Darknet-19

Darknet-19 has 19 convolutional layers, it's faster than yolo_v2. If you use darknet-19, you need some modifications. It's easy to modify.

Please download Darknet-19 weights file for VOC from darknet-19.

Training on Your Own Dataset

To train the model on your own dataset, you should need to modify:

  1. Put all the images into the Images folder, put all the labels into the Labels folder. Select a part of the image for training, write this part of the image filenames into train.txt, the remaining part of the image filenames written in test.txt. Then put the Images, Labels, train.txt and test.txt into data/dataset. Put weight file in data/output.

  2. config.py: modify the CLASSES.

  3. train.py: replacefrom pascal_voc import Pascal_voc with from preprocess import Data_preprocess, and replace pre_data = Pascal_voc() with pre_data = Data_preprocess().

Requirements

  1. Tensorflow
  2. OpenCV

yolo_v2's People

Contributors

leeyoshinari avatar

Stargazers

Timothy avatar

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.