Move from PIL to torchvision.io.decode_image #2303
Labels
best practice
Things we should be doing but aren't
community help wanted
We would love the community's help completing this issue
Instead of using
PIL.open
, @NicolasHug has pointed out that we can move totorchvision.io.decode_image
to speed up image processing by doing everything on pure tensors (see also. This would also allow us to drop our explicit PIL requirement). This should entail:The text was updated successfully, but these errors were encountered: