Code Monkey home page Code Monkey logo

sangkengetan / detect-object-classification-with-yolov8 Goto Github PK

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

Leverage YOLOv8, a cutting-edge real-time object detection system, to train custom datasets for efficient object detection in images and videos. Harness YOLOv8's speed and accuracy for seamless integration into diverse computer vision applications. Clone the repository, follow the README setup, and contribute to project enhancement.

Jupyter Notebook 99.41% Python 0.59%
detection-object object-classification yolov8

detect-object-classification-with-yolov8's Introduction

detect-object-classification-with-YOLOv8

Tools

  1. Python Language
  2. Visual Studio Code [https://code.visualstudio.com/download]
  3. Google Colaboratory [https://colab.research.google.com/]
  4. Git [https://git-scm.com/downloads]
  5. Github [https://github.com]
  6. Terminal (Powershell, Iterm, Command Prompt (CMD), Bash, Zsh, Fish, etc)

Dataset

If you want a dataset like mine, you can download it at the following link: 'Dataset'.

How to Train Data in Local

  1. I assume you have Python language installed and a dataset on your device. The first step is that you have to install the library in the terminal by typing this command:
pip install ultralytic
  1. If you already have the ultralytics library in your working folder. You can confirm the directory where the .yaml file is located.
  2. Next, you have to adjust the contents of the .yaml file, such as the dataset directory and class label naming.
  3. If you have completed steps one to three, run the train.py file or write the following command in the terminal:
python train_data.py

How to Train Data in Google Colab

  1. I assume you already have a dataset that matches the example. The first step is to upload the dataset file to Google Drive.
  2. Next, upload the .yaml file and adjust the contents of the file in Google Drive.
  3. Then, create a Google Colab file or copy the .ipnyb file to your drive.
  4. If so, execute each command in the Google Colab file.
$ gcc main -o main.c && ./main

How to Detect File Photo or Video

I assume you have finished training the data so you already have a YOLOv8 model. If you want to detect photos or videos, adjust the contents of the file source directory and execute the following command in the terminal:

python predict_foto.py
python predict_video.py

The following is the project structure that must be used in local.

.
├── README.md
├── detectObjectClassificationWithYolov8
│   ├── Dataset
│   │   ├── Train
│   │   │   ├── images (.jpeg/.jpg/.png)
│   │   │   ├── label (.txt)
│   │   ├── Validasi
│   │   └── Test
│   ├── config.yaml
│   ├── train.py or train_data.ipnyb
│   ├── predict_foto.py
│   ├── predict_video.py
│   ├── Video or Photo or Data
│   ...
...

detect-object-classification-with-yolov8's People

Contributors

sangkengetan avatar

Stargazers

 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.