Failed to load image extension - Windows CUDA 11.7
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
🐛 Describe the bug
I observe following failures
https://github.com/pytorch/builder/actions/runs/4104686412/attempts/3
Windows CUDA 11.7, python 3.8-3.10
RuntimeError: Module torchvision FAIL: 1 Output: C:\Jenkins\Miniconda3\envs\conda-env-4104686412\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Jenkins\Miniconda3\envs\conda-env-4104686412\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
warn(
torchvision: 0.15.0.dev20230206
Traceback (most recent call last):
File "C:\Jenkins\Miniconda3\envs\conda-env-4104686412\lib\site-packages\torch\_ops.py", line 562, in __getattr__
op, overload_names = torch._C._jit_get_operation(qualified_op_name)
RuntimeError: No such operator image::decode_png
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\actions-runner\_work\builder\builder\pytorch\builder\vision\test\smoke_test.py", line 65, in <module>
main()
File "C:\actions-runner\_work\builder\builder\pytorch\builder\vision\test\smoke_test.py", line 57, in main
smoke_test_torchvision()
File "C:\actions-runner\_work\builder\builder\pytorch\builder\vision\test\smoke_test.py", line 17, in smoke_test_torchvision
all(x is not None for x in [torch.ops.image.decode_png, torch.ops.torchvision.roi_align]),
File "C:\Jenkins\Miniconda3\envs\conda-env-4104686412\lib\site-packages\torch\_ops.py", line 566, in __getattr__
raise AttributeError(
AttributeError: '_OpNamespace' 'image' object has no attribute 'decode_png'
Its same failure as: https://github.com/pytorch/vision/issues/7036
But now on windows.
cc @pmeier @NicolasHug @malfet
Versions
nightly
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with pytorch/builder/vision/test/smoke_test.py and the linked Windows CUDA 11.7 workflow run. Compare the failure with torchvision issue 7036 and investigate why image.pyd or its dependencies cannot load. Done means the Windows CUDA 11.7 smoke test passes and the image::decode_png and torchvision::roi_align operators are available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100