xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
26.96k stars 3.39k forks source link

python script #762

Open mycomedico opened 4 months ago

mycomedico commented 4 months ago

I was trying to run the python script and received following error:

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

device-0ba78c commented 3 months ago

Hey, I think you are either missing the module:

Download the get-pip.py file: get-pip.py Run get-pip.py: python get-pip.py Then install the module you need: pip install torchvision

Or, you don't have it added to the PATH:

Add Python Scripts directory to PATH (The link is just an example, replace it with the location of python on your computer):

PATH C:\Program Files\Python312\Scripts\

Hope this helps! ^^