from torchvision import transforms
出现报错
D:\anaconda\envs\PyTorch\lib\site-packages\torchvision\io\image.py:11: UserWarning: Failed to load image Python extension: Could not find module 'D:\anaconda\envs\PyTorch\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
warn(f"Failed to load image Python extension: {e}")
网上查到是版本不对, 直接
pip uninstall torchvision
然后
pip install torchvision