Skip to content

Commit ef5b3da

Browse files
rcourivaudfmassa
authored andcommitted
add webp format available in torch datasets folder (#736)
1 parent 1f8f7ea commit ef5b3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/datasets/folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __repr__(self):
151151
return fmt_str
152152

153153

154-
IMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff']
154+
IMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff', 'webp']
155155

156156

157157
def pil_loader(path):

0 commit comments

Comments
 (0)