Code Monkey home page Code Monkey logo

tensorflow-yolo3's Introduction

tensorflow-yolo3

license

Setup environment

  1. virtualenv --python=python3.5 py35
  2. source py35/bin/activate
  3. cd [dir of tf-yolo3]
  4. pip install -r requirements.txt

Data Prepare

  1. Download the DETRAC dataset from detrac_website
  2. chage the config.py file to the location of your downloaded dataset.
  3. run script in data to parse XML file.
cd datasets
python XML_parser.py
python image_migrate.py  

Training

  1. If you want to use original pretrained weights for YOLOv3, download from darknet53 weights
  2. rename it as darknet53.weights, and modify the darknet53_weights_path in the config.py
wget https://pjreddie.com/media/files/darknet53.conv.74`  
  1. Modify the data augmentation parameters and train parameters
  2. Run yolo_train.py

Evaluation

  1. Modify the pre_train_yolo3 and model_dir in config.py
  2. Run detect.py
python detect.py --image_file ./test.jpg

Notice

If you want to modify the Gpu index, please modify gpu_index in config.py

Credit

@article{yolov3,
	title={YOLOv3: An Incremental Improvement},
	author={Redmon, Joseph and Farhadi, Ali},
	journal = {arXiv},
	year={2018}
}

Reference

tensorflow-yolo3's People

Contributors

aloyschen avatar shenmbsw avatar

Stargazers

Yiru Guo 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.