How to Random Erasing with black box

Hi, I want to do random erase with torchvision, and I want it to replace the erased region with black pixels, how to do that? I can only got gray. By the way, I am using this parameter

transforms.RandomErasing(p=1.0, value=0)

1 Like