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

bug with GenParamGetter.py and supermerger.py not loading #427

Open
cain666-4u opened this issue Jan 5, 2025 · 0 comments
Open

bug with GenParamGetter.py and supermerger.py not loading #427

cain666-4u opened this issue Jan 5, 2025 · 0 comments

Comments

@cain666-4u
Copy link

after a reinstall of auto1111 i get this error

*** Error loading script: GenParamGetter.py
Traceback (most recent call last):
File "J:\Ai\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:\Users\cain6\AppData\Local\Programs\Python\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 "J:\Ai\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' (J:\Ai\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 "J:\Ai\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:\Users\cain6\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py", line 24, in <module>
    from ...loaders import FromSingleFileMixin, IPAdapterMixin, StableDiffusionLoraLoaderMixin, TextualInversionLoaderMixin
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "J:\Ai\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 "J:\Ai\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' (J:\Ai\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 "J:\Ai\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "J:\Ai\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\GenParamGetter.py", line 5, in <module>
    from scripts.mergers.pluslora import frompromptf
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\mergers\pluslora.py", line 21, in <module>
    from scripts.kohyas import extract_lora_from_models as ext
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\kohyas\extract_lora_from_models.py", line 12, in <module>
    from scripts.kohyas import sai_model_spec,model_util,sdxl_model_util,lora
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\kohyas\model_util.py", line 16, in <module>
    from diffusers import AutoencoderKL, DDIMScheduler, StableDiffusionPipeline  # , UNet2DConditionModel
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in __getattr__
    value = getattr(module, name)
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in __getattr__
    value = getattr(module, name)
  File "J:\Ai\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 "J:\Ai\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.pipeline_stable_diffusion 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' (J:\Ai\stable-diffusion-webui\venv\lib\site-packages\transformers\__init__.py)

*** Error loading script: supermerger.py
Traceback (most recent call last):
File "J:\Ai\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:\Users\cain6\AppData\Local\Programs\Python\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 "J:\Ai\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' (J:\Ai\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 "J:\Ai\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:\Users\cain6\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py", line 24, in <module>
    from ...loaders import FromSingleFileMixin, IPAdapterMixin, StableDiffusionLoraLoaderMixin, TextualInversionLoaderMixin
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "J:\Ai\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 "J:\Ai\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' (J:\Ai\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 "J:\Ai\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "J:\Ai\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\supermerger.py", line 25, in <module>
    import scripts.mergers.pluslora
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\mergers\pluslora.py", line 21, in <module>
    from scripts.kohyas import extract_lora_from_models as ext
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\kohyas\extract_lora_from_models.py", line 12, in <module>
    from scripts.kohyas import sai_model_spec,model_util,sdxl_model_util,lora
  File "J:\Ai\stable-diffusion-webui\extensions\sd-webui-supermerger\scripts\kohyas\model_util.py", line 16, in <module>
    from diffusers import AutoencoderKL, DDIMScheduler, StableDiffusionPipeline  # , UNet2DConditionModel
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in __getattr__
    value = getattr(module, name)
  File "J:\Ai\stable-diffusion-webui\venv\lib\site-packages\diffusers\utils\import_utils.py", line 911, in __getattr__
    value = getattr(module, name)
  File "J:\Ai\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 "J:\Ai\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.pipeline_stable_diffusion 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' (J:\Ai\stable-diffusion-webui\venv\lib\site-packages\transformers\__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant