-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Very very urgent help required Yolov8 classification issue #12676
Comments
Hi there! It looks like your classification model is experiencing some inconsistency with the predictions. Here are a few suggestions that might help improve the stability of your results:
Here's a modified training command you might consider using: !yolo task=classify mode=train model=yolov8m-cls.pt data='{DATA_DIR}' epochs=120 imgsz=128 optimizer=Adam dropout=0.2 lr=0.001 This uses a larger image size and a reduced learning rate, which might help in your case. Let's see if these changes influence the consistency of your predictions! 🚀 |
i have run the training command the command you gave to run it ----> !yolo task=classify mode=train model=yolov8m-cls.pt data='{DATA_DIR}' epochs=120 imgsz=128 optimizer=Adam dropout=0.2 lr=0.001 after using this command i am getting this error Traceback (most recent call last):
@glenn-jocher @RizwanMunawar @AyushExel kindly help as earliest as possible because currently my work has been stucked it would be grateful if you could help me out with this |
Hey there! 👋 It looks like there’s a small mix-up with the argument for the learning rate. In YOLOv8 CLI, the learning rate should be specified as You can correct your command as follows: !yolo task=classify mode=train model=yolov8m-cls.pt data='{DATA_DIR}' epochs=120 imgsz=128 optimizer=Adam dropout=0.2 lr0=0.001 Give this a try and let me know if it resolves the issue! If you run into anything else, feel free to reach out. Happy training! 🚀 |
Okay sure I will try and let you know @glenn-jocher |
@anut123 great! Looking forward to hearing how it goes! If you have any more questions or need further assistance, don't hesitate to ask. Happy coding! 😊 |
for example if I have horse video so it is need to classify eating horse or not eating horse and after I have train the classification model for horse then I am getting the output example as if i take horse video then output is classifying eating-horse 0.56 so on and not eating horse 0.97 but it should classify eating horse as 0.97 and not eating horse as 0.56 sometimes I am getting correct answer and sometimes I am getting wrong output of eating horse video |
Hi there! It sounds like your model might be experiencing some inconsistency in its predictions. This could be due to various factors such as model overfitting, insufficient or imbalanced training data. You might want to try a few things:
Here's a quick tweak to your training command to include more data augmentation: !yolo task=classify mode=train model=yolov8m-cls.pt data='{DATA_DIR}' epochs=120 imgsz=128 optimizer=Adam dropout=0.2 lr0=0.001 augment=True Hope this helps! Let us know how it goes. 😊 |
sure will let know @glenn-jocher |
Sounds good! Looking forward to your update. If you need any more help, just let us know! 😊 |
Search before asking
Question
In yolov8 classification model and it is for custom dataset I need two classes for example if I have horse video so it is need to classify eating horse or not eating horse and after I have train the classification model for horse then I am getting the output example as if i take horse video then output is classifying eating-horse 0.56 so on and not eating horse 0.97 but it should classify eating horse as 0.97 and not eating horse as 0.56 sometimes I am getting correct answer and sometimes I am getting wrong output of eating horse video
And if I take not eating horse video then the output is classifying as not eating 0.89 and eating 0.34 and sometimes it classify as not eating 0.45 and eating 0.89 I mean sometimes it is showing correct output results and sometimes not showing correct output results
For training the model i have used train command of classification model yolov8 I have done hypertuning parameter also and I have trained the model with more epochs still the same issue and the images are of 50k for horse animal
I have tired multiple ways and i have tired alott but I couldn't find any solution yet it would be grateful if anyone could help me out with this
for training the model of classification yolov8 i have used this command
!yolo task=classify mode=train model=yolov8m-cls.pt data='{DATA_DIR}' epochs=120 imgsz=64 optimizer=Adam dropout=0.2
@glenn-jocher
@RizwanMunawar
Very very urgent help required
Additional
No response
The text was updated successfully, but these errors were encountered: