Which approach should I follow? #16316
Replies: 2 comments 2 replies
-
👋 Hello @rahuldev-2021, thank you for reaching out to the Ultralytics community 🚀! It sounds like you're delving into the exciting area of incremental learning with your YOLOv8s-world-v2 model. For comprehensive guidance, please explore our Docs, where a wealth of resources like Python and CLI examples are available. If this is a 🐛 Bug Report, we kindly request a minimum reproducible example to assist us in debugging the issue. If your inquiry pertains to custom training ❓, please provide detailed information, including dataset samples and training logs. Also, ensure you are following our Tips for Best Training Results. Join our vibrant Ultralytics community for real-time discussions on Discord 🎧, or partake in extended discussions on Discourse. Our Subreddit is also a great place to exchange insights with fellow developers. UpgradeMake sure you have the latest version of the pip install -U ultralytics EnvironmentsYOLOv8 runs in several verified environments with dependencies like CUDA/CUDNN:
StatusWhen this badge is green, all Ultralytics CI tests are passing, ensuring smooth functionality of YOLOv8 across multiple platforms. Please note that this is an automated response. An Ultralytics engineer will attend to your query shortly. 😊 |
Beta Was this translation helpful? Give feedback.
-
@rahuldev-2021 to achieve incremental learning without forgetting pre-trained classes, consider using techniques like knowledge distillation or fine-tuning with a balanced dataset that includes both old and new classes. The number of instances required can vary, but a balanced representation of each class is generally recommended to maintain performance. For more detailed guidance, please refer to our documentation on model training tips. |
Beta Was this translation helpful? Give feedback.
-
Using a dataset with ten classes, I trained a Yolov8s-world-v2 model for real-time object detection. My goal is to continuously add additional classes without having to train the model again from scratch (no forgetting of pre-trained classes).
Training the model with only new class
I've tried changing batch layers, freezing layers, and varying the learning rate, but none of them have produced the results I was hoping for. Could you suggest a method for achieving incremental learning that avoids the need for the model to be completely retrained from scratch?
For training the model with the new class alone, How many instances(data)are required in each - class for every incremental training?
Beta Was this translation helpful? Give feedback.
All reactions