-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' #765
Comments
go to the file show here "/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py" |
So does this imply that this repo wont function anymore without explicity changing this? At the same time colab wont work either? |
`!nvidia-smi from PIL import Image !git clone https://github.com/xinntao/Real-ESRGAN.git with open('requirements.txt', 'w') as arquivo: !pip install facexlib ffmpeg ffmpeg-python with open('/usr/local/lib/python3.10/dist-packages/basicsr-1.3.5-py3.10.egg/basicsr/data/degradations.py', 'r') as file: mount_drive=False #@param{type:"boolean"} if mount_drive: |
I don't know why in Colab, whenever something gets updated, it always has to mess up everything else. To solve this problem, you need to execute this command.
After this, everything should work fine. |
please give a proper video |
Can confirm, this worked for me in colab. |
ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: 2.2.0, 2.2.1, 2.2.2) |
Traceback (most recent call last):
File "/content/Real-ESRGAN/inference_realesrgan.py", line 5, in
from basicsr.archs.rrdbnet_arch import RRDBNet
File "/usr/local/lib/python3.10/dist-packages/basicsr/init.py", line 4, in
from .data import *
File "/usr/local/lib/python3.10/dist-packages/basicsr/data/init.py", line 22, in
_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
File "/usr/local/lib/python3.10/dist-packages/basicsr/data/init.py", line 22, in
_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.10/dist-packages/basicsr/data/realesrgan_dataset.py", line 11, in
from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels
File "/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py", line 8, in
from torchvision.transforms.functional_tensor import rgb_to_grayscale
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'
The text was updated successfully, but these errors were encountered: