We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942796c commit f84af6dCopy full SHA for f84af6d
torchvision/io/image.py
@@ -10,7 +10,12 @@
10
try:
11
_load_library("image")
12
except (ImportError, OSError) as e:
13
- warn(f"Failed to load image Python extension: {e}")
+ warn(
14
+ f"Failed to load image Python extension: '{e}'"
15
+ f"If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. "
16
+ f"Otherwise, there might be something wrong with your environment. "
17
+ f"Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?"
18
+ )
19
20
21
class ImageReadMode(Enum):
0 commit comments