xinntao / Real-ESRGAN

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

Module not found error google colab #647

Open ashis-paul-blox opened 1 year ago

ashis-paul-blox commented 1 year ago

While running the inference, getting this error

/content/Real-ESRGAN
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(
Traceback (most recent call last):
  File "/content/Real-ESRGAN/inference_realesrgan.py", line 8, in <module>
    from realesrgan import RealESRGANer
  File "/content/Real-ESRGAN/realesrgan/__init__.py", line 6, in <module>
    from .version import *
ModuleNotFoundError: No module named 'realesrgan.version'
huangxinping commented 12 months ago

python setup.py develop will solve the problem.