Skip to content
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

Image Upscaler HALTED | Improper import statement for dependency: basicsr | ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' #64

Closed
Daethyra opened this issue Mar 16, 2024 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Daethyra
Copy link
Owner

Details

Reference Issues:

  1. BasicSR
  2. Real-ESRGAN
  3. Automatic1111

My Traceback (PII Scrubbed):

(.venv) PS C:\Users\Software\testground\Real-ESRGAN> python .\inference_realesrgan.py      
Traceback (most recent call last):
 File "C:\Users\Software\testground\Real-ESRGAN\inference_realesrgan.py", line 5, in <module>
    from basicsr.archs.rrdbnet_arch import RRDBNet
 File "C:\Users\Software\.venv\lib\site-packages\basicsr\__init__.py", line 4, in <module>
    from .data import *
 File "C:\Users\Software\.venv\lib\site-packages\basicsr\data\__init__.py", line 22, in <module>
    _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
 File "C:\Users\Software\.venv\lib\site-packages\basicsr\data\__init__.py", line 22, in <listcomp>
    _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
 File "C:\Users\Software\.venv\lib\site-packages\basicsr\data\realesrgan_dataset.py", line 11, in <module>
    from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels
 File "C:\Users\Software\.venv\lib\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'

Suggested Fix

@Daethyra Daethyra added bug Something isn't working wontfix This will not be worked on labels Mar 16, 2024
@Daethyra Daethyra added this to the (Page) Upscale Images milestone Mar 16, 2024
@Daethyra Daethyra changed the title Image Upscaler HALTED | Improper import statement for dependency: basicsr Image Upscaler HALTED | Improper import statement for dependency: basicsr | ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' Mar 16, 2024
@Daethyra Daethyra moved this to Done in FreeStream 🤖 Mar 30, 2024
@Daethyra
Copy link
Owner Author

Fixed and finished w/ #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
Status: Done
Development

No branches or pull requests

1 participant