Feeding JFIF vs EXIF standard jpg images to a model -- JFIF breaks with RuntimeError: stack expects a non-empty TensorList error

This error doesn’t seem to be PyTorch-specific, as it seems the image loading library fails to load an image based on your description.
Similar issue posted here with debug suggestion.

1 Like