GithubHelp home page GithubHelp logo

kamipakistan / yolov5-custom-object-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

This repository includes all the necessary code and scripts to train your own custom object detection model using YOLOv5. The repository contains detailed instructions and documentation to guide you through the process of data preparation, training, evaluation, and inference.

License: GNU General Public License v3.0

computer-vision deep-learning deeplearning image-classification machine-learning yolo yolov5

yolov5-custom-object-detection's Introduction

YOLOv5 Custom Object Detection

YOLOv5 (You Only Look Once version 5) is a popular real-time object detection algorithm that uses deep learning techniques to detect and classify objects in images and videos. YOLOv5 was released in 2020 and is the latest version of the YOLO algorithm. YOLOv5 achieves high accuracy and speed by using a smaller network architecture and implementing various optimization techniques, such as focal loss and data augmentation. One of the major advantages of YOLOv5 is its ability to be customized for specific object detection tasks. With YOLOv5, users can train their own custom object detection models using their own dataset of images and labels, making it a versatile solution for various object detection tasks.

Before You Start

Clone repo and install requirements.txt in a Python>=3.7.0 environment, including PyTorch>=1.7. Models and datasets download automatically from the latest YOLOv5 release.

Clone GitHub repository

!git clone https://github.com/ultralytics/yolov5  # clone

install dependencies

%cd yolov5
%pip install -qr requirements.txt  # install

check PyTorch and GPU

import torch
import utils
display = utils.notebook_init()  # checks

Testing requirements with pretrained model

detect.py runs YOLOv5 inference on a variety of sources, downloading models automatically from the latest YOLOv5 release, and saving results to runs/detect. Example inference sources are:

python detect.py --source 0  # webcam
                          img.jpg  # image 
                          vid.mp4  # video
                          screen  # screenshot
                          path/  # directory
                         'path/*.jpg'  # glob
                         'https://youtu.be/Zgi9g1ksQHc'  # YouTube
                         'rtsp://example.com/media.mp4'  # RTSP, RTMP, HTTP stream

yolov5-custom-object-detection's People

Contributors

kamipakistan avatar

Stargazers

Osman Sefa Coşar avatar

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.