Coder Social home page Coder Social logo

yolov1-keras-voc's Introduction

yolov1-keras-voc

Keras implementation of YOLOv1 (Tensorflow backend) inspired by allanzelener/YAD2K and qqwweee/keras-yolo3.

Download Yolo weights

Download tiny-yolov1 weights from here.

wget http://pjreddie.com/media/files/yolov1/tiny-yolov1.weights

Convert the model

Convert the Darknet model to a Keras model.

python convert.py cfg/yolov1-tiny.cfg tiny-yolov1.weights tiny-yolov1.hdf5

Train your datasets

I use pascal-v0c2007 to train, you can download the datasets from here.

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 all of these tars into one directory named VOCdevkit

tar xvf VOCtrainval_06-Nov-2007.tar
tar xvf VOCtest_06-Nov-2007.tar

Build datasets.

python voc_annotation.py [Your Datasets Path]

Train by own datasets.

python train.py 100 32 [Your Datasets Path]

Detect image

Imagepath is the path of image you want to detect.

python tiny_yolov1.py tiny-yolov1.hdf5 [Your Image Path]

yolov1-keras-voc's People

Contributors

jy-112553 avatar nxquang-al 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.