I met below warring when import torchvision, I checked the table in GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision. My torchvision is 0.18.1 and torch is 2.3.1.
Could you please help to check how to fix this?
(yolo5) PS C:\Users\win> python
Python 3.9.19 (main, May 6 2024, 20:12:36) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
import torchvision
D:\miniconda_data\envs\yolo5\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: '[WinError 127] The specified program could not be found.'If you don’t plan on using image functionality fromtorchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you havelibjpeg
orlibpng
installed before buildingtorchvision
from source?
warn(
torch.version
‘2.3.1’
torchvision.version
‘0.18.1’