Real-ESRGAN icon indicating copy to clipboard operation
Real-ESRGAN copied to clipboard

ModuleNotFoundError

Open xreynaldimiki opened this issue 10 months ago • 3 comments

At the Inference stage I always get an error message (ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor) I have tried different file types but still get the same message. Screenshot_2024-04-08-00-41-10-691_com android chrome-edit

xreynaldimiki avatar Apr 07 '24 17:04 xreynaldimiki

Edit torchvision.transforms.functional_tensor to torchvision.transforms.functional

marcobarbierato avatar Apr 08 '24 14:04 marcobarbierato

the output cannot be edited Screenshot_2024-04-08-22-49-51-063_com android chrome-edit

xreynaldimiki avatar Apr 08 '24 15:04 xreynaldimiki

torchvision==0.16.2 is working until the code in BasicSR is updated to utilize the newest TorchVision syntax

relevant Pull Request for BasicSR: https://github.com/XPixelGroup/BasicSR/pull/624

TorchVision 0.17.0+ https://github.com/pytorch/vision/releases/tag/v0.17.0

[transforms] We removed the torchvision.transforms.functional_tensor.py and torchvision.transforms.functional_pil.py modules, as these had been deprecated for a while. Use the public functionals from torchvision.transforms.v2.functional instead.

Omnibus-ai avatar Apr 10 '24 01:04 Omnibus-ai