albumentations
albumentations copied to clipboard
Add RandomGrayscaleErasing
Similar to RandomErasing / CoarseDropout, etc, but instead of erasing the region replaces it with the grayscale version
Can copy from https://github.com/layumi/Person_reID_baseline_pytorch/blob/84360b7b964dc4b9746dd89837333ed34c1208c5/random_erasing.py#L57
@ternaus Hi, I'd like to work on this issue. Should it be image-only transform, or should mask and key points be affected like in CoarseDropout?
Good question. I think that it should affect only the images, but in this case, it will have a different spirit than the CourseDropout.
It looks like it should be a separate transform.
@Dipet What do you think?