You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue where using torchvision.io.read_image (as well as decode_image and decode_gif) on certain GIF files produces an invalid output. Here is a code:
I understand that this may be an underlying issue of GIFLIB and will not be fixed. However, since the behavior is unexpected and could impact users, it might be beneficial to include a note in the docs.
Versions
I found this behavior on Macbook and Linux server. They have different setup, but both of them use the latest versions:
torch==2.6.0
torchvision==0.21.0
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
I have encountered an issue where using
torchvision.io.read_image
(as well asdecode_image
anddecode_gif
) on certain GIF files produces an invalid output. Here is a code:Sample of buggy GIF:

Its source: https://i.pinimg.com/originals/a0/02/a3/a002a3e51a2adc85d6c0a4684892e743.gif
Output:

Comparing with PIL (Pillow)
I understand that this may be an underlying issue of GIFLIB and will not be fixed. However, since the behavior is unexpected and could impact users, it might be beneficial to include a note in the docs.
Versions
I found this behavior on Macbook and Linux server. They have different setup, but both of them use the latest versions:
The text was updated successfully, but these errors were encountered: