"Infinite Preparing space"

Thanks! But now I predict that solution isn’t going to work, something deeper than that was broken, I just found out your space:

That one is currently working perfectly as expected, with the SuperMerger tab appearing on it. However, if you try to Duplicate it, it will build without error, however, the SuperMerger tab will be gone! You can see this one:

The SuperMerger tab will not appear because of these errors:


*** Error loading script: supermerger.py
    Traceback (most recent call last):
      File "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 920, in _get_module
        return importlib.import_module("." + module_name, self.__name__)
      File "/usr/local/lib/python3.10/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 "/usr/local/lib/python3.10/site-packages/diffusers/loaders/ip_adapter.py", line 36, in <module>
        from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
    ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (/usr/local/lib/python3.10/site-packages/transformers/__init__.py)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 920, in _get_module
        return importlib.import_module("." + module_name, self.__name__)
      File "/usr/local/lib/python3.10/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 "/usr/local/lib/python3.10/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 "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 910, in __getattr__
        module = self._get_module(self._class_to_module[name])
      File "/usr/local/lib/python3.10/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' (/usr/local/lib/python3.10/site-packages/transformers/__init__.py)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "/home/user/stable-diffusion-webui/modules/scripts.py", line 515, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/user/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 "/home/user/stable-diffusion-webui/extensions/sd-webui-supermerger/scripts/supermerger.py", line 23, in <module>
        import scripts.mergers.pluslora
      File "/home/user/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 "/home/user/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 "/home/user/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 "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 911, in __getattr__
        value = getattr(module, name)
      File "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 911, in __getattr__
        value = getattr(module, name)
      File "/usr/local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 910, in __getattr__
        module = self._get_module(self._class_to_module[name])
      File "/usr/local/lib/python3.10/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' (/usr/local/lib/python3.10/site-packages/transformers/__init__.py)

In fact, if you restart the space or it’s restarted to clean up after you exceed the free space the SuperMerger tab will disappear! Something at huggingface changed around 4 days or a week ago that broke it because it’s the same code that was running fine back then.

If you could make a duplicate of your space that shows the SuperMerger tab like the one running does it would solve all the problems.

1 Like