-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Do I use the --hyp
for training YOLO-v5 model with Albumentations?
#12587
Comments
@unikill066 hello! Great to see you're experimenting with Albumentations for augmenting your dataset. 👍 When you integrate Albumentations into your training pipeline, you don't necessarily need to use the If you're satisfied with the default hyperparameters or if you've already set your desired hyperparameters within your training script, you can train without the So, if you're looking to use the default hyperparameters, you can go with your second command:
If you want to customize the hyperparameters, then include the
Remember to monitor your training to ensure that the augmentations are having the desired effect on your model's performance. Happy training! 😊 |
Thank you @glenn-jocher, I have used various percentages of albumentations; p = 0.01, 0.1, 0.2, 0.5 and 1.0 which I edited in the |
@unikill066, it's interesting to see that the performance metrics are similar across different probabilities of augmentation. This could be due to several factors:
It might be helpful to conduct further experiments, such as:
Remember, the goal of augmentations is to improve the model's ability to generalize to new, unseen data, so it's also crucial to evaluate the model on an external test set if possible. Keep iterating, and good luck with your experiments! 🚀 |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
Search before asking
Question
I have integrated various Albumentations into my YOLO-v5 model by modifying the
augmentations.py
file. In the Albumentations class, I have included a list of transformations.Here is my code in the Albumentations class(
/utils/augmentations.py
):When training a YOLO model with these Albumentations, do I need to include the
--hyp
option, or can I train without it while still incorporating the Albumentations into the training process?python train.py --img 512 --batch 16 --epochs 1000 --data consider.yaml --weights yolov5s.pt --hyp hyp.scratch-med.yaml --cache --cuda
python train.py --img 512 --batch 16 --epochs 1000 --data consider.yaml --weights yolov5s.pt --cache --cuda
Additional
No response
The text was updated successfully, but these errors were encountered: