Giter VIP home page Giter VIP logo

yolov3_tensorflow's Introduction

part 1. Quick start

  1. Download this file
$ git clone 'https://github.com/wangzhongju/yolov3_tensorflow.git'
  1. place your data folder in '{project}/imgorg/'

e.g. there is a folder named 'test' what contained some images, now, wo can do follow this steps:

$ mv /path/to/test/folder {project}/imgorg
$ python cascade_detection.py

At last, you can see the results in '{project}/label2d'

part 2. Retrain

  1. format of txt_file:

img1_path bbox_1,labelname bbox_2,labelname ... img_path: the address of image, e.g. /path/for/test/test.jpg bbox: x1,y1,x2,y2 labelname: locate in '{project}/data/classes/train.names', you can rewrite it. therefore, every line of the txt_file just like: /path/to/test.jpg 23,145,342,32,1 535,232,23,56,0 there are two bboxes in picture named test.jpg, (23,145,342,32) and (535,232,23,56), one bbox labelname 1, the other labelname 0

  1. check './core/config.py', make sure the path correct.
  2. run command
$ python train.py
  1. convert '.data-00000-of-00001' to '.pb' At the end of trianing, wo got some files located in '{project}/checkpoint/', e.g. one of them named 'yolov3_test_loss=12.342.ckpt-10.data-00000-of-00001', next, open the file '{project}/freeze_gragh.py', confirm that variable 'ckpt_file' have the same name with 'yolov3_test_loss=12.342.ckpt-10.data-00000-of-00001', run:
$ python freeze_graph.py

result: see the variable 'pb_file'

yolov3_tensorflow's People

Contributors

wangzhongju avatar zhongjuwang avatar

Watchers

James Cloos avatar  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.