-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train subclass in Coco data set #13798
Comments
👋 Hello @dat-nguyenvn, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users. InstallPip install the pip install ultralytics EnvironmentsYOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
@dat-nguyenvn hi Dat, Thank you for your question! Let's address your queries step-by-step:
I hope this helps! If you encounter any issues or need further assistance, feel free to ask. Happy training! 🚀 |
Thank for your feed back! |
@dat-nguyenvn hi Dat, Thank you for your follow-up! Here's a quick guide to help you download and filter the COCO dataset for the classes Step-by-Step Guide
This should help you get started with downloading and filtering the COCO dataset for your specific classes. If you have any further questions, feel free to ask! 😊 |
Search before asking
Question
How can I re-train 3 subclasses in Coco dataset using pretrain weights on my data? (I don't need add new class)
Additional
My dataset has 3 classes : zebra, elephant, giraffe. The Coco dataset also has 3 classes.
1.How can I re-train 3 subclasses in Coco dataset using pretrain weights on my data? (I don't need add new class)
2. You support the filter of model for the predict task by argument: classes=[20,22,23] ;
If I set the argument classes=[20,22,23] (correspond with zebra, elephant, giraffe. ) for training model as:
results = model.train(data="coco8-seg.yaml", classes=[20,22,23] ,epochs=100, imgsz=640)
Is my yaml file correct?:
nc=3 names: 20: elephant 22: zebra 23: giraffe
Thank you!
Dat
The text was updated successfully, but these errors were encountered: