albumentations icon indicating copy to clipboard operation
albumentations copied to clipboard

Add RandomGrayscaleErasing

Open ternaus opened this issue 2 years ago • 3 comments

Similar to RandomErasing / CoarseDropout, etc, but instead of erasing the region replaces it with the grayscale version

ternaus avatar Jul 22 '22 13:07 ternaus

Can copy from https://github.com/layumi/Person_reID_baseline_pytorch/blob/84360b7b964dc4b9746dd89837333ed34c1208c5/random_erasing.py#L57

ternaus avatar Jul 22 '22 13:07 ternaus

@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?

SergeyVlSorokin avatar Aug 05 '22 15:08 SergeyVlSorokin

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?

ternaus avatar Aug 05 '22 17:08 ternaus