Giter VIP home page Giter VIP logo

yolov4-custom_training's Introduction

Train a custom YOLOv4 object detector

Original Video by cottonbro from Pexels

Mask detection using YOLOv4

The yolov4 folder in this repository contains the 4 custom files needed. (i.e. yolov4-custom.cfg, obj.data, obj.names and process.py) except obj.zip(labeled images). I have shared my labeled custom mask dataset obj.zip file on the following link. You can download it from here.

https://www.kaggle.com/techzizou/labeled-mask-dataset-yolo-darknet

The obj.zip file contains 1510 images along with their YOLO labeled text files. I have labeled around 1350 of these and downloaded 149 labeled images from roboflow. I have given the links for my dataset sources at the bottom.

This dataset has mostly close-up images (around 1300) and very few long-shot images (around 200). If you want to download more long-shot images, you can search for datasets online. There are many sites where you can find more datasets. Check out my Medium article below for links to these sites. I have also given a few links for mask datasets. Some of them have more than 10,000 images. You can add your own images and their YOLO labeled text files to the dataset. Try to find good quality images.

NOTE : The yolov4-custom.cfg, obj.data, and obj.names files are customized for the 2 classes I am working with. (i.e. "with_mask" & "without_mask"). You can edit these files for your custom objects.

My Colab notebook for training a custom Yolov4 detector

https://colab.research.google.com/drive/1zqRb08ljHvIIMR4fgAXeNy1kUtjDU85B?usp=sharing

My Medium article on this

https://techzizou007.medium.com/train-a-custom-yolov4-object-detector-using-google-colab-61a659d4868

Watch my YouTube Video on this

https://youtu.be/SCAgktactKE

CREDITS

References

AlexeyAB GitHub

Mask Dataset Sources

I have used these 3 datasets for my labeled obj.zip dataset. Check out my medium article above for more mask datasets.

Prajnasb Github

Joseph Nelson Roboflow

X-zhangyang Github

Original Video by Nothing Ahead from Pexels

yolov4-custom_training's People

Contributors

techzizou 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.