Hi, nice to meet you.I looked it up online, but I'm in trouble because there's no solution.
I wanted to use pytorch, so I installed torch and torchvision, but when I imported torchvision,
The following warning occurs:
import torch
import torch.nn asn
import torch.nn.functional asf
from torch.utils.data import DataLoader
import torchvision
import trafficvision.transforms as transforms
import torch.optim as optim
if__name__=='__main__':
print(torch.cuda.is_available())
C:\Users\username\PycharmProjects\pukatorch5\venv\lib\site-packages\torchvision\io\image.py:11:UserWarning: Failed to load image Python extension: Could not find module'C:\Users\username\PycharmProject\pukatorchion\packet\vocation\location\location\location\location\location\location\location\location\location\location warn(f"Failed to load image Python extension: {e}")
I went to see the path called Could not find module, but image.pyd exists and I don't know what to do.I would appreciate it if you could let me know
Package Version
numpy1.21.4
Pillow 8.4.0
pip21.3.1
setuptools40.8.0
torch 1.10.1+cu102
torchaudio 0.10.1+cu102
torchvision0.11.2+cu102
typing_extensions 4.0.1
Python version is 3.8
. python pytorch torch
When I lowered the version of Cuda from cu102 to cu101, Warning no longer occurs.
Package Version
----------------- -----------
numpy1.21.4
Pillow 8.4.0
pip 21.3.1
setupools 40.8.0
torch 1.7.1 + cu101
torchaudio 0.7.2
torchvision 0.8.2 + cu101
typing_extensions 4.0.1
© 2024 OneMinuteCode. All rights reserved.