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
torchvision.io.read_image crashes python when reading this image(from 300W/lfpw/trainset dataset).
There's no error message, but it looks like the crash happens in torch.ops.image.decode_image.
I have tested it on three different computer(0.10.0, 0.10.1 and 0.10.1+cpu), and all of them crashed.
fromPILimportImageimportnumpyasnpimg=np.array(Image.open('image_0779.png'))#this is fineimporttorchvisiontorchvision.io.read_image('image_0779.png')#this crash
Versions
Collecting environment information...
PyTorch version: 1.9.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 Home Insider Preview
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.21.2
Libc version: N/A
Python version: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.21296-SP0
Is CUDA available: True
CUDA runtime version: 11.1.74
GPU models and configuration: GPU 0: NVIDIA TITAN Xp COLLECTORS EDITION
Nvidia driver version: 510.10
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] Could not collect
[conda] Could not collect
The text was updated successfully, but these errors were encountered:
Thanks for reporting the bug. I was able to reproduce this issue with 0.10 on Windows. However, I think this issue is same as #3613 which was fixed in #4101. If you try the latest nightly(conda install pytorch torchvision cpuonly -c pytorch-nightly), you wouldn't see the crash with the correct exception thrown.
🐛 Describe the bug
torchvision.io.read_image
crashes python when reading this image(from 300W/lfpw/trainset dataset).There's no error message, but it looks like the crash happens in
torch.ops.image.decode_image
.I have tested it on three different computer(0.10.0, 0.10.1 and 0.10.1+cpu), and all of them crashed.
Versions
Collecting environment information...
PyTorch version: 1.9.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 Home Insider Preview
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.21.2
Libc version: N/A
Python version: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.21296-SP0
Is CUDA available: True
CUDA runtime version: 11.1.74
GPU models and configuration: GPU 0: NVIDIA TITAN Xp COLLECTORS EDITION
Nvidia driver version: 510.10
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] Could not collect
[conda] Could not collect
The text was updated successfully, but these errors were encountered: