Code Monkey home page Code Monkey logo

yolo-4-boats's Introduction

YOLO-4-BOATS

Manuel Alvarez, Jeffrey Chan, Anthony Ortiz, Jose Quiñones,

Outline:

The following code is a real-time object detection algorithm based on the programm You Only Look Once (YOLO), by Joseph Redmon, Ali Farhadi. More specifically, we used YOLOv2 and Tiny YOLOv3. The data used was extracted from Pascal VOC 2

What's YOLO?:

YOLO is a program of real-time object detection that, as its name suggest, runs the convolutional neural network (CNN) and classifiers only once per sample. This trait makes YOLO much faster than competitors. Is also important to mention that YOLO threats object detection as a regression problem. YOLOv2 have 19 convolutional layers and 5 maxpooling layers, while tiny-YOLOv3 only has 13 convolutional layers.

Structure of Data:

The image used were extrated from PASCAL VOC data sets. We were able to get 508 images and their labels. Unfortunately, the labels were not already orginize as YOLO require. But fortunately, YOLO had a script for PASCAL VOC labels managing, as to organize them correctly. It, therefore, arrenge the labels text to have [Class, x, y, width, height], where x, y represent the coordinates of the center of the boundary box.

Output:

The output of the programm are the image given with the predicted boundary. This constituted a problem to the metric since we are not given the error values such as accuracy or precision.

How to run:

Diagram to train markdown

Download darknet.

git clone https://github.com/pjreddie/darknet
cd darknet
make

Download the dataset:

wget http://pjreddie.com/media/files/VOCtrainval_11-May-2012.tar
wget http://pjreddie.com/media/files/VOCtest_06-Nov-2007.tar
tar -xvf VOCtrainval_11-May-2012.tar
tar -xvf VOCtest_06-Nov-2007.tar

Download the pre-trained weights:

wget https://pjreddie.com/media/files/darknet53.conv.74

Proccess the metdata to feed it into darknet.

python voc_label.py
python test_voc_label.py

To train YOLO

Train YoloV2

./darknet/darknet detector train boats.data cfg/yolov2-boats.cfg darknet53.conv.74

Train Yolo Tiny V3

./darknet/darknet detector train boats.data cfg/yolov3-tiny-boats.cfg darknet53.conv.74

Predict using our pre-trained networks:

YoloV2

Dowload weights Here

./darknet/darknet detector test boats.data cfg/yolov2-boats.cfg weights/yolov2.backup < test.txt

Yolo Tiny V3

./darknet/darknet detector test boats.data cfg/yolov3-tiny-boats.cfg weights/yolov3-tiny-boats_30000.weights < test.txt

yolo-4-boats's People

Contributors

jachansantiago avatar

Stargazers

 avatar Shri Harri Priya R avatar

Watchers

 avatar

Forkers

manodg fangbotom

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.