Open NesterukSergey opened 3 years ago
Hey @NesterukSergey, thanks. Looks good to me! We can proceed with implementing this feature with Albumetnations.
I propose to create a new package augmentors
in the albumentations
directory and place all the required code into this package.
Hey @NesterukSergey, thanks. Looks good to me! We can proceed with implementing this feature with Albumetnations.
I propose to create a new package
augmentors
in thealbumentations
directory and place all the required code into this package.
The idea is inline with the copy-paste augmentation method which achieves very promising performance improvements. This would be a great addition to the Albumentations augmentations.
Hi!
I propose to add transforms that cut objects from different images using their segmentation masks and paste them to the new background. The idea is described here and some other research papers, and a demo can be found here.
Why is it useful?
It allows adding extra variability to training images by combining multiple objects on one scene and apply augmentations separately to objects, background, and the whole scene.
What are the cases?
How difficult is it to add it?
The main point is it doesn't require changes to existing code, and can be implemented as a wrapper.
Limitations
This method assumes that we have instance segmentation masks for the objects of interest. If only bounding boxes provided, we can still apply copy-pasing of the whole box like here.
Suggested functional interface
It will also require adding some utils for copy-pasting objects.