-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
[Bug]: Bunch of loading script errors after fresh install on new hardware. #1491
Comments
hey same error for me as well, i think there is something wrong with the transformer compatibility. Please any one help us |
Have the same issue. Just wanted to get started for the first time |
I would assume as the extension didn't change for a while and this issue only came up in the last days (can't find a similar trace otherwise), it must be an incompatability of a dependency that recently had a version jump? |
I assume that might be the issue. At this point, I wish they would bundle this extension with their own A1111 fork. I’ve tried other standalone Gradio and non-Gradio apps for training, but this extension - at least in my case - has proven to be the most effective and user-friendly. |
Looks like this is an issue with using transformers v4.30.2, which is what is specified in the AUTOMATIC1111 requirements.txt. Seems like it was resolved in v4.37.0, and if you switch, it should allow you to bring up the Dreambooth tab in the UI.
Note that by doing this, there are new errors produced in the log, but these look like access errors for the Huggingface online repository, and they don't appear to be showstoppers (but I haven't really done any further testing):
|
Is there an existing issue for this?
What happened?
Simply bought new GPU and I did a fresh install of everything. Now I cannot use this extension.
Steps to reproduce the problem
Install it on a fresh A1111 instance and try to do anything.
Commit and libraries
Initializing Dreambooth
Dreambooth revision: 1b3257b
Checking xformers...
Checking bitsandbytes...
Checking bitsandbytes (ALL!)
Checking Dreambooth requirements...
Installed version of bitsandbytes: 0.43.0
[Dreambooth] bitsandbytes v0.43.0 is already installed.
Installed version of accelerate: 0.21.0
[Dreambooth] accelerate v0.21.0 is already installed.
Installed version of dadaptation: 3.2
[Dreambooth] dadaptation v3.2 is already installed.
Installed version of diffusers: 0.32.1
[Dreambooth] diffusers v0.25.0 is already installed.
Installed version of discord-webhook: 1.3.0
[Dreambooth] discord-webhook v1.3.0 is already installed.
Installed version of fastapi: 0.94.0
[Dreambooth] fastapi is already installed.
Installed version of gitpython: 3.1.44
[Dreambooth] gitpython v3.1.40 is already installed.
Installed version of pytorch_optimizer: 2.12.0
[Dreambooth] pytorch_optimizer v2.12.0 is already installed.
Installed version of Pillow: 9.5.0
[Dreambooth] Pillow is already installed.
Installed version of tqdm: 4.67.1
[Dreambooth] tqdm is already installed.
Installed version of tomesd: 0.1.3
[Dreambooth] tomesd v0.1.2 is already installed.
Installed version of tensorboard: 2.13.0
[Dreambooth] tensorboard v2.13.0 is already installed.
[+] torch version 2.1.2+cu121 installed.
[+] torchvision version 0.16.2+cu121 installed.
[+] accelerate version 0.21.0 installed.
[+] diffusers version 0.32.1 installed.
[+] bitsandbytes version 0.43.0 installed.
[+] xformers version 0.0.21 installed.
Launching Web UI with arguments: --xformers --vae-dir 'H:\AI\VAE' --ckpt-dir 'H:\AI\SD_Models' --lora-dir 'H:\AI\Lora' --embeddings-dir 'H:\AI\embeddings' --esrgan-models-path 'H:\AI\ESRGAN'
H:\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
WARNING:xformers:WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.0.1+cu118 with CUDA 1108 (you have 2.1.2+cu121)
Python 3.10.11 (you have 3.10.11)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
You are running xformers 0.0.21.
The program is tested to work with xformers 0.0.23.post1.
To reinstall the desired version, run with commandline flag --reinstall-xformers.
Use --skip-version-check commandline argument to disable this check.
*** Error loading script: GenParamGetter.py
Traceback (most recent call last):
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
File "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\loaders\ip_adapter.py", line 36, in
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
*** Error loading script: supermerger.py
Traceback (most recent call last):
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
File "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\loaders\ip_adapter.py", line 36, in
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
Exception importing api
Traceback (most recent call last):
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
File "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\loaders\ip_adapter.py", line 36, in
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
File "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\stable_diffusion_xl\pipeline_stable_diffusion_xl.py", line 29, in
from ...loaders import (
File "", line 1075, in _handle_fromlist
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 922, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.ip_adapter because of the following error (look up to see its traceback):
cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "H:\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\api.py", line 32, in
from dreambooth.ui_functions import create_model, generate_samples,
File "H:\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\ui_functions.py", line 28, in
from dreambooth.sd_to_diff import extract_checkpoint
File "H:\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\sd_to_diff.py", line 24, in
from diffusers import StableDiffusionXLPipeline, StableDiffusionPipeline
File "", line 1075, in _handle_fromlist
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in getattr
value = getattr(module, name)
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in getattr
value = getattr(module, name)
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 922, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_xl.pipeline_stable_diffusion_xl because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.ip_adapter because of the following error (look up to see its traceback):
cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
*** Error loading script: main.py
Traceback (most recent call last):
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
File "C:\Program Files\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "H:\stable-diffusion-webui\venv\lib\site-packages\diffusers\loaders\ip_adapter.py", line 36, in
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (H:\stable-diffusion-webui\venv\lib\site-packages\transformers_init.py)
Loading weights [6ce0161689] from H:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: H:\stable-diffusion-webui\configs\v1-inference.yaml
H:\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:795: FutureWarning:
resume_download
is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, useforce_download=True
.warnings.warn(
Running on local URL: http://127.0.0.1:7860
Command Line Arguments
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: