ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' #16720
Elan-Craft
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi how do I solve the error> I am installing stable diffusion 1.0.0 and I get this error:
venv "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash:
Installing requirements for Web UI
Launching Web UI with arguments:
C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\devices.py:11: UserWarning: 'has_mps' is deprecated, please use 'torch.backends.mps.is_built()'
if not getattr(torch, 'has_mps', False):
Traceback (most recent call last):
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\launch.py", line 330, in
start()
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\launch.py", line 321, in start
import webui
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\webui.py", line 16, in
from modules import extra_networks_hypernet, ui_extra_networks_hypernets, ui_extra_networks_textual_inversion
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\extra_networks_hypernet.py", line 2, in
from modules.hypernetworks import hypernetwork
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\hypernetworks\hypernetwork.py", line 10, in
import modules.textual_inversion.dataset
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\textual_inversion\dataset.py", line 13, in
from modules import devices, shared
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\shared.py", line 12, in
import modules.interrogate
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\interrogate.py", line 15, in
from modules import devices, paths, lowvram, modelloader, errors
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\modules\modelloader.py", line 7, in
from basicsr.utils.download_util import load_file_from_url
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\lib\site-packages\basicsr_init_.py", line 4, in
from .data import *
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\lib\site-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 "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\lib\site-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 "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py", line 11, in
from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels
File "C:\Users\LMorales\Desktop\stable-diffusion-webui-1.0.0-pre\stable-diffusion-webui-1.0.0-pre\venv\lib\site-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'
Press any key to continue . . .
Beta Was this translation helpful? Give feedback.
All reactions