-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Description
📚 The doc issue
Docstring says "This transform does not support PIL Image." but works fine without warning or error:
from PIL import Image
from torchvision.transforms import v2 as transforms
img_pil = Image.open("astronaut.jpg")
t = transforms.RandomErasing(p=1.0)
img_transformed = t(img_pil)
print(type(img_transformed))
img_transformed.show()Output:
<class 'PIL.Image.Image'>

Torchvision version: '0.25.0+cu128'
Suggest a potential alternative/fix
Check potential issues, remove sentence from docstring
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels