All Projects → ayooshkathuria → PyTorch-YOLO-v2

ayooshkathuria / PyTorch-YOLO-v2

Licence: other
A PyTorch implementation of a YOLO v2 Object Detector

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PyTorch-YOLO-v2

lightDenseYOLO
A real-time object detection app based on lightDenseYOLO Our lightDenseYOLO is the combination of two components: lightDenseNet as the CNN feature extractor and YOLO v2 as the detection module
Stars: ✭ 20 (+42.86%)
Mutual labels:  yolo, yolov2
object-tracking
Multiple Object Tracking System in Keras + (Detection Network - YOLO)
Stars: ✭ 89 (+535.71%)
Mutual labels:  yolo, yolov2
VideoRecognition-realtime-autotrainer-alerts
State of the art object detection in real-time using YOLOV3 algorithm. Augmented with a process that allows easy training of the classifier as a plug & play solution . Provides alert if an item in an alert list is detected.
Stars: ✭ 36 (+157.14%)
Mutual labels:  yolo, yolov2
Yolo-v2-pytorch
YOLO for object detection tasks
Stars: ✭ 327 (+2235.71%)
Mutual labels:  yolo, yolov2
Alturos.ImageAnnotation
A collaborative tool for labeling image data for yolo
Stars: ✭ 47 (+235.71%)
Mutual labels:  yolo, yolov2
YOLO-Object-Counting-API
The code of the Object Counting API, implemented with the YOLO algorithm and with the SORT algorithm
Stars: ✭ 131 (+835.71%)
Mutual labels:  yolo, yolov2
go-darknet
Go bindings for Darknet (YOLO v4 / v3)
Stars: ✭ 56 (+300%)
Mutual labels:  yolo, yolov2
tfjs-yolo
YOLO v3 and Tiny YOLO v1, v2, v3 with Tensorflow.js
Stars: ✭ 108 (+671.43%)
Mutual labels:  yolo, yolov2
darknet
php ffi darknet
Stars: ✭ 21 (+50%)
Mutual labels:  yolo, yolov2
Custom-Object-Detection-using-Darkflow
Make custom objects dataset and detect them using darkflow. Darkflow is a tensorflow translation of Darknet.
Stars: ✭ 21 (+50%)
Mutual labels:  yolo, yolov2
car-detection-yolo
Autonomous driving - car detection using the very powerful YOLO model
Stars: ✭ 73 (+421.43%)
Mutual labels:  yolo, yolov2
OpenCvSharpDnnYolo
Yolo With OpenCvSharp Dnn
Stars: ✭ 25 (+78.57%)
Mutual labels:  yolo, yolov2
yolo v1 pytorch
PyTorch implementation of YOLO-v1 including training
Stars: ✭ 89 (+535.71%)
Mutual labels:  yolo
vrpdr
Deep Learning Applied To Vehicle Registration Plate Detection and Recognition in PyTorch.
Stars: ✭ 36 (+157.14%)
Mutual labels:  yolo
darknet.js
A NodeJS wrapper of pjreddie's darknet / yolo.
Stars: ✭ 61 (+335.71%)
Mutual labels:  yolo
WebsiteYOLO
The back-end for the YOLOv3 object detector running as a webapp
Stars: ✭ 26 (+85.71%)
Mutual labels:  yolo
AutonomousDriving
Java Autonomous Driving Appplication. Real time video car,pedistrians detection
Stars: ✭ 51 (+264.29%)
Mutual labels:  yolov2
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
Stars: ✭ 63 (+350%)
Mutual labels:  yolo
DL.EyeSight
Mainly use SSD, YOLO and other models to solve the target detection problem in image and video !
Stars: ✭ 48 (+242.86%)
Mutual labels:  yolo
pnn
pnn is Darknet compatible neural nets inference engine implemented in Rust.
Stars: ✭ 17 (+21.43%)
Mutual labels:  yolo

A PyTorch implementation of a YOLO v2 Object Detector

This repository contains code for a object detector based on YOLO9000: Better, Faster, Stronger, implementedin PyTorch. The code is based on the official code of YOLO v2, as well as a PyTorch port of the original code, by marvis. One of the goals of this code is to improve upon the original port by removing redundant parts of the code (The official code is basically a fully blown deep learning library, and includes stuff like sequence models, which are not used in YOLO). I've also tried to keep the code minimal, and document it as well as I can.

As of now, the code only contains the detection module, but you should expect the training module soon. :)

Requirements

  1. Python 3.5
  2. OpenCV
  3. PyTorch 0.3+

Detection Example

Detection Exaple

Running the detector

On single or multiple images

Clone, and cd into the repo directory. Then, you have two variants of the detector, one that has been trained on PASCAL VOC data (faster, but less accurate and recognises only 20 object categories), or the one trained on COCO (Slower, more accurate, detects 80 categories).

For example, running the detector trained on PASCAL VOC download here, and place the weights file into your repo directory. Or, you could just type (if you're on Linux)

wget https://pjreddie.com/media/files/yolo-voc.weights 
python detect.py --images imgs --det det --dataset pascal 

For running with one trainined on coco, download this weightsfile, and run the code with --dataset flag set to coco.

--images flag defines the directory to load images from, or a single image file (it will figure it out), and --det is the directory to save images to. Other setting such as batch size, object threshold confidence can be tweaked with flags that can be looked up with

python detect.py -h

On Video

For this, you should run the file, video_demo.py with --video flag specifying the video file. The video file should be in .avi format since openCV only accepts OpenCV as the input format.

python video_demo.py --video video.avi --dataset pascal

Tweakable settings can be seen with -h flag.

To speed video inference, you can try using the video_demo_half.py file instead which does all the inference with 16-bit half precision floats instead of 32-bit float. I haven't seen big improvements, but I attribute that to having an older card (Tesla K80, Kepler arch, getting around 22 fps with PASCAL). If you have one of cards with fast float16 support, try it out, and if possible, benchmark it.

On a Camera

Same as video module, but you don't have to specify the video file since feed will be taken from your camera. To be precise, feed will be taken from what the OpenCV, recognises as camera 0. You can tweak this setting in code.

You'll have to download Tiny-yolo weightsfile in your repo folder. Excpect higher FPS and lower accuracy.

python cam_demo.py

You can easily tweak the code to use different weightsfiles, available at yolo website

Coming Soon

Training module should arrive soon.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].