Data Augmentation Rework - using albumentations #7225
Replies: 1 comment 2 replies
-
@florenttaralle hi, thank you for your feature suggestion on how to improve YOLOv5 🚀! Yes, it might make sense to consolidate the augmentations together more with albumentations, as there is a certain level of duplication currently. Albumentations can not fully replace the YOLOv5 augmentations though as it doesn't offer all types, like Mosaic, and the team does not plan to support those in future that would require multiple images (i.e. Mosaic). The fastest and easiest way to incorporate your ideas into the official codebase is to submit a Pull Request (PR) implementing your idea, and if applicable providing before and after profiling/inference/training results to help us understand the improvement your feature provides. This allows us to directly see the changes in the code and to understand how they affect workflows and performance. Please see our ✅ Contributing Guide to get started. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Yolov5 is both such a great architecture and a great training environment.
It is so easy to train and test new models from scratch. I love working with it.
But when I have to look at data augmentation en preparation, I feel realy confused.
The code is realy hard to understand and upgrade. That said, I noticed upgrades there, but not enougth !
As a first exemple, I recently had to add a random bgr_to_gray transform.
As a second exemple, I would like to implemente rotated-bbox prediction. That requires a lot of work but data-augmentation seems to be the hardest to change at first.
I wonder if we could rework the data-augmentation part of Yolov5 using albumentations.
To be noted that I noticed that albumentations is partialy used in augmentations.py but as a single all-in-one transform, sadly not as a generic data-augmentation framework.
So I start this discussion to know if other think (1) this is a good idea and if (2) albumentations is the good choice.
Beta Was this translation helpful? Give feedback.
All reactions