Git Product home page Git Product logo

dl--yolo-real-time-object-detection's Introduction

Real-time object detection - YOLOv3 in PyTorch

This project is still under development.

Table of Contents

Description

In this notebook, I’ll perform a full implementation of YOLOv3 in PyTorch based on the following materials:

Example of image detection output:

Installation

Project was created with Python 3.6.x and pyTorch 0.4.0.

Clone repository and install requirements:

git clone https://github.com/BarbaraStempien/DL--YOLO-Real-Time-Object-Detection.git
cd DL--YOLO-Real-Time-Object-Detection
pip3 install -r requirements.txt

Download YOLOv3 weights:

wget https://pjreddie.com/media/files/yolov3.weights

You can download different weights from the YOLO website.

Running the script

Run detection for images

python image_detection.py -h

-h allows you to look up all terminal flags

python image_detection.py --images imgs --det det 

--images flag defines the directory of your input images --det flag defines the directory of your output imanges (directory to which images with detected objects will be saved)

python image_detection.py --images imgs --det det --reso 320

--reso flag allows you to change resolution of the input images, default value is 416. Number must be a multiple of 32 and greater than 32.

python image_detection.py --confidence 0.25

--confidence flag allows you to change confidence level. By default, model displays object detected with a confidence of 0.5 or higher.

Run detection for video

python video_detection.py -h

-h flag allows you to look up all terminal flags defined.

python video_detection.py --video video/example.avi

--video flag defines the directory and name of your input video. Video must be in the the .avi format.

python video_detection.py

Run video detection script without a --video flag to use machine's default camera.

python video_detection.py --reso 320

--reso flag allows you to change resolution of the video, default value is 160.

python video_detection.py --confidence 0.25

--confidence flag allows you to change confidence level. By default, model displays object detected with a confidence of 0.5 or higher.

To stop web cam recording, press Q on the keyboard.

Demo

Contributing

If you want to contribute, check out CONTRIBUTING.md.

dl--yolo-real-time-object-detection's People

Watchers

 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.