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

Yolov5 classifier ,some training images are being centre cropped #12756

Closed
1 task done
humairaneha opened this issue Feb 22, 2024 · 2 comments
Closed
1 task done

Yolov5 classifier ,some training images are being centre cropped #12756

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

Comments

@humairaneha
Copy link

Search before asking

Question

I don't want this behaviour. I have resized my image to 224*224,but during training the images are being cropped ,so most information of the images are being lost. what to do?

Additional

No response

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

@humairaneha hello! Thanks for reaching out. If you're observing that your images are being center-cropped during training, it's likely due to the data augmentation settings in the YOLOv5 data pipeline.

To prevent center-cropping, you can adjust the augmentation settings in your dataset's YAML file. Specifically, you'll want to look at the augment section and modify the parameters related to cropping, such as mosaic, mixup, and random crop settings. Set these to false or adjust their probabilities to 0 to disable them.

For more detailed guidance on how to configure your data augmentations, please refer to the documentation at https://docs.ultralytics.com/yolov5/.

Remember, any changes to the augmentation settings can affect the model's ability to generalize, so it's a good idea to monitor your model's performance on a validation set after making adjustments.

Happy training! 😊

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 Mar 24, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 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