Skip to content
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

augmentation in validation #12952

Open
1 task done
BehdadSDP opened this issue Apr 22, 2024 · 2 comments
Open
1 task done

augmentation in validation #12952

BehdadSDP opened this issue Apr 22, 2024 · 2 comments
Labels
question Further information is requested Stale

Comments

@BehdadSDP
Copy link

Search before asking

Question

Hello friends,
I have a question about data augmentation. I know that in training phase, we may augment images and control these methods with some hyper parameters. but I want to know, Are these methods apply in validation phase, too? in my opinion the answer is negative. maybe resize might apply on images.
Thanks.

Additional

No response

@BehdadSDP BehdadSDP added the question Further information is requested label Apr 22, 2024
@glenn-jocher
Copy link
Member

Hello! 🌟

You're right; typically, data augmentation methods are applied only during the training phase to help the model generalize better by providing a diverse set of samples. In the validation (and testing) phase, we generally do not apply these augmentations because we want to evaluate the model on the data as close to the original distribution as possible. Resize might be the only common transformation applied to validation data to match the input size expected by the model.

In YOLOv5, the validation phase does not use the extensive augmentation techniques applied during training, adhering to the standard practice of evaluating on unaltered data, aside from necessary resizing or scaling.

If you need to adjust validation transformations, you might look into the dataset configuration files but keep in mind the goal of validation is to assess performance under standard conditions.

Happy coding!

Copy link
Contributor

👋 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 ⭐

@github-actions github-actions bot added the Stale label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants