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.88k stars 1.2k forks source link

Update degradations.py #667

Open saidineshpola opened 7 months ago

saidineshpola commented 7 months ago

This issue is related to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13985 and I have updated imports for torchvison

File "/venv/lib/python3.10/site-packages/basicsr/data/degradations.py", line 8, in <module> from torchvision.transforms.functional_tensor import rgb_to_grayscale ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'