Giter Site home page Giter Site logo

yolo-v3's Introduction

Yolo-V3

This is a pytorch implementation of Yolo V3, supported by pretrained weights for Pascal-VOC and inference script.

Setup And Inference

Code is developed under following library dependencies

python 3.7
torch 1.10.1
torchvision 0.11.2
opencv

Start with creating a virtual environment then open your terminal and follow the following steps:

git clone "https://github.com/zaghlol94/Yolo-V3"
cd Yolo-V3
pip install -r requirements.txt
bash download_assets.sh
cd src
python detect.py -I "image path"

Data-Set

This code we could use PASCAL_VOC or MS-COCO dataset

├── images
│   ├── 000001.jpg
│   ├── 000002.jpg
│   ├── 000003.jpg
│   ├── .
│   ├── .
│   ├── .
│   └── 009963.jpg
├── labels
│   ├── 000001.txt
│   ├── 000002.txt
│   ├── 000003.txt
│   ├── .
│   ├── .
│   ├── .
│   └── 009963.txt
├── test.csv
└── train.csv

For each image *.jpg in images folder there is a corresponding text file *.txt in the same name. Every line in the text file represents an object. Every line contains five values, the first value is the class id and the last four value is the bounding box. bounding box style is either midpoint style or corner

midpoint style example:-
11 0.34135977337110485 0.609 0.4164305949008499 0.262

Train on custom data

prepare your data set as the same structure of Data-set that showed in the previous section, furthermore change the DATASET and NUM_CLASSES variables and add list contains the classes name in config.py, then follow the following steps in the command line:

cd src
python train.py

Citation

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

yolo-v3's People

Contributors

zaghlol94 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.