Code Monkey home page Code Monkey logo

Comments (2)

github-actions avatar github-actions commented on July 1, 2024

πŸ‘‹ Hello @SutirthaChakraborty, thank you for raising an issue about Ultralytics HUB πŸš€! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a πŸ› Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

from hub.

pderrenger avatar pderrenger commented on July 1, 2024

Hello!

Thank you for reaching out with your question. To train a model on YOLO8 that can detect multiple classes for a single object, you'll need to adjust your dataset annotations to reflect these hierarchical class relationships. Each image should have annotations for both the specific class (e.g., 'bee') and its broader category (e.g., 'insect').

Here’s a brief guide on how to proceed:

  1. Annotation Format: Ensure your annotation files list multiple classes for the objects that belong to more than one class. For example, an image with a bee might have annotations for both 'bee' and 'insect'.

  2. Modify Dataset Loading: When loading your dataset in the training script, make sure the loader is configured to handle multiple labels per object.

  3. Model Configuration: In your model configuration file, define all the classes (specific and general) that you want the model to learn.

  4. Training: Train your model with these annotations. The model should learn to recognize objects in both their specific and general classes.

  5. Evaluation: During inference, the model should predict multiple classes for a single object as per the training.

If toggling between two classes still occurs, it might be helpful to look into the confidence thresholds and non-maximum suppression settings to ensure that the model can confidently predict multiple classes for the same object.

Let me know if you need further assistance or specific guidance on any of the steps!

from hub.

Related Issues (20)

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.