Git Product home page Git Product logo

finetuning_yolov5m_on_custom_dataset's Introduction

Finetuning YOLOv5m on custom dataset

Object detection YOLOv5m finetuning on custom dataset with PyTorch. Inference on videos.

tracking_sagrada_familia.mp4

Original YOLOv5 repository: https://github.com/ultralytics/yolov5

Directory Structure

All the code files and folders follow the following structure.

├── data.yaml
├── README.dataset.txt
├── README.roboflow.txt
├── test
│   ├── images
│   └── labels
├── train
│   ├── images
│   └── labels
└── yolov5

Introduction

It is used YOLOv5m model, which has been trained on the MS COCO dataset. In the notebook provided, the model is finetuned on PASCAL VOC using PyTorch.

YOLO is short for You Only Look Once. It is a family of single-stage deep learning based object detectors. They are capable of real-time object detection with state-of-the-art accuracy. Officially, as part of the Darknet framework, there are four versions of YOLO. Starting from YOLOv1 to YOLOv4. The Darknet framework is written in C and CUDA. YOLOv5 is the next version equivalent in the YOLO family.

There are 5 YOLOv5 models. In this project, it is used YOLOv5m. This is the medium-sized model with 21.2 million parameters. It is perhaps the best suited model for a lot of datasets and training as it provides a good balance between speed and accuracy.

It is used the Pascal VOC 2012 Dataset dataset for training the custom YOLOv5 object detector. We can therefore detect 20 objects in images (+1 for the background class), including airplanes, bicycles, birds, boats, bottles, buses, cars, cats, chairs, cows, dining tables, dogs, horses, motorbikes, people, potted plants, sheep, sofas, trains, and tv monitors.

Instructions

Please, follow the instruction in the provided notebook.

Outputs

Object detection videos are saved in:

 yolov5/runs/detect/

finetuning_yolov5m_on_custom_dataset's People

Contributors

javier-marti-isasi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

velumahalingam

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.