-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Mixup or CutMix augmentations #340
Comments
I am looking into contributing both Mixup and CutMix augmentations. Both of these augmentations take multiple images in order to do the augmentation. As far as I can tell all of the existing augmentations in the library only operates on a single image and the entire API is build around a single image being fetched in the datalaoder. Is that correct? To implement these new augmentations we would be operating on the batch level. Do you have any thoughts on how this should be implemented API wise within the library? |
Now when I checked the API, you are right. For CutMix, if the mixed image is fixed it can be treated as an input variable (numpy array etc.) but Mixup is more tricky obviously. |
@bmabey Randomly sampling within the dataloader for multiple images. Would be nice to augment labels as well. These can then be fed in with
|
Please see the repository https://github.com/naver-ai/relabel_imagenet CutMix implementation: https://github.com/naver-ai/relabel_imagenet/blob/main/utils/data_augment.py#L54 This may be a simpler alternative to using multiple images. Looking forward to see this in albumentations |
Is anyone working on this? I would be happy to take it and do a PR |
The following paper also shows good improvements with MixUp/CutMix |
Ref PR #1147 |
MixUp PR here: #1409 |
Any follow up on this? |
Any updates on this? This issue is almost 3 years old |
Yeah, better to use keras-cv at this point instead of albumentations (for these augmentations) |
MixUp added in #1549 |
Any plan on adding Mixup or CutMix augmentations?
The text was updated successfully, but these errors were encountered: