XPixelGroup / BasicSR

Open Source Image and Video Restoration Toolbox for Super-resolution, Denoise, Deblurring, etc. Currently, it includes EDSR, RCAN, SRResNet, SRGAN, ESRGAN, EDVR, BasicVSR, SwinIR, ECBSR, etc. Also support StyleGAN2, DFDNet.
https://basicsr.readthedocs.io/en/latest/
Apache License 2.0
6.44k stars 1.14k forks source link

No module named 'torchvision.transforms.functional_tensor' #663

Closed cncloudli closed 3 months ago

cncloudli commented 3 months ago

在某些版本pytorch(2.2.1)中,torchvision.transforms.functional_tensor的名字改了,改成了torchvision.transforms._functional_tensor,导致data\degradations.py这个文件里面导入这个包时会出错,修改包名后可正常运行 In some versions of Pytorch (for example, 2.2.1), the name of the module "torchvision.transforms.functional_tensor" has been modified to "torchvision.transforms._functional_tensor", which would cause an error when import this module in the file "data\degradations.py". Editing the name of the module could solve this issue.