Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.49k stars 264 forks source link

Reactor doesn't show after installing #456

Open bobbyjer opened 4 months ago

bobbyjer commented 4 months ago

First, confirm

What happened?

Reactor doesn't show after installing, please help. I installed the onnxruntime still not working.

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

Sysinfo

Macbook Pro

Relevant console log

*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 11, in <module>
        import ui_extra_networks_lora
      File "/Users/bob/stable-diffusion-webui/extensions-builtin/Lora/ui_extra_networks_lora.py", line 76
        return item
    IndentationError: expected an indented block after 'elif' statement on line 74

---
*** Error loading script: console_log_patch.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/console_log_patch.py", line 4, in <module>
        import insightface
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_api.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_api.py", line 23, in <module>
        from scripts.reactor_swapper import EnhancementOptions, swap_face, DetectionOptions
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_faceswap.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_faceswap.py", line 18, in <module>
        from reactor_ui import (
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/reactor_ui/__init__.py", line 2, in <module>
        import reactor_ui.reactor_tools_ui as ui_tools
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/reactor_ui/reactor_tools_ui.py", line 2, in <module>
        from scripts.reactor_swapper import build_face_model, blend_faces
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_helpers.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_helpers.py", line 10, in <module>
        from insightface.app.common import Face
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_logger.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_logger.py", line 7, in <module>
        from scripts.reactor_helpers import addLoggingLevel
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_helpers.py", line 10, in <module>
        from insightface.app.common import Face
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_swapper.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_version.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_version.py", line 4, in <module>
        from scripts.reactor_logger import logger, get_Run, set_Run
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_logger.py", line 7, in <module>
        from scripts.reactor_helpers import addLoggingLevel
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_helpers.py", line 10, in <module>
        from insightface.app.common import Face
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime. 

---
*** Error loading script: reactor_xyz.py
    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 8, in <module>
        import onnxruntime
    ModuleNotFoundError: No module named 'onnxruntime'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/bob/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/bob/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 "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_xyz.py", line 8, in <module>
        from scripts.reactor_helpers import (
      File "/Users/bob/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_helpers.py", line 10, in <module>
        from insightface.app.common import Face
      File "/Users/bob/stable-diffusion-webui/venv/lib/python3.10/site-packages/insightface/__init__.py", line 10, in <module>
        raise ImportError(
    ImportError: Unable to import dependency onnxruntime.

Additional information

No response

cserpellZF commented 4 months ago

Can you try installing onnxruntime ?

If GPU:

pip install onnxruntime-gpu

If CPU:

pip install onnxruntime
valtezar commented 1 month ago

Can you try installing onnxruntime ?

If GPU:

pip install onnxruntime-gpu

If CPU:

pip install onnxruntime

exactly the same problem, I can't solve it yet either...

RodrigoValentain commented 1 month ago

same problem for me

venv "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\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)] Version: f0.0.12-latest-152-g2616c206 Commit hash: 2616c20687d1a5efa05b90f789a81d5d913d34b8 CUDA 12.1 Error: not enough values to unpack (expected 1, got 0)

    +---------------------------------+
    --- PLEASE, RESTART the Server! ---
    +---------------------------------+

Launching Web UI with arguments: Total VRAM 8191 MB, total RAM 32725 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : native VAE dtype: torch.bfloat16 no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: pytorch_lightning.utilities.distributed.rank_zero_only has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from pytorch_lightning.utilities instead. rank_zero_deprecation( Using pytorch cross attention *** Error loading script: m2m_ui.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\scripts\m2m_ui.py", line 46, in from scripts import m2m_hook as patches ImportError: cannot import name 'm2m_hook' from 'scripts' (unknown location)


ControlNet preprocessor location: T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\models\ControlNetPreprocessor Civitai Helper: Root Path is: T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge Civitai Helper: Get Custom Model Folder [-] ADetailer initialized. version: 24.8.0, num models: 10 ** Error loading script: console_log_patch.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\console_log_patch.py", line 4, in <module>
    import insightface
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_api.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_api.py", line 28, in <module>
    from scripts.reactor_swapper import EnhancementOptions, swap_face, DetectionOptions
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 11, in <module>
    import insightface
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_faceswap.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 18, in <module>
    from reactor_ui import (
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\reactor_ui\__init__.py", line 2, in <module>
    import reactor_ui.reactor_tools_ui as ui_tools
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\reactor_ui\reactor_tools_ui.py", line 2, in <module>
    from scripts.reactor_swapper import build_face_model, blend_faces
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 11, in <module>
    import insightface
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_helpers.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in <module>
    from insightface.app.common import Face
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_logger.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in <module>
    from scripts.reactor_helpers import addLoggingLevel
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in <module>
    from insightface.app.common import Face
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_swapper.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 11, in <module>
    import insightface
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_version.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_version.py", line 4, in <module>
    from scripts.reactor_logger import logger, get_Run, set_Run
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in <module>
    from scripts.reactor_helpers import addLoggingLevel
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in <module>
    from insightface.app.common import Face
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

** Error loading script: reactor_xyz.py Traceback (most recent call last): File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface__init.py", line 8, in import onnxruntime File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init.py", line 57, in raise import_capi_exception File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import # noqa ImportError: DLL load failed while importing onnxruntime_pybind11_state: Uma rotina de inicialização da biblioteca de vínculo dinâmico (DLL) falhou.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\scripts.py", line 541, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\modules\script_loading.py", line 10, 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 "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_xyz.py", line 8, in <module>
    from scripts.reactor_helpers import (
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in <module>
    from insightface.app.common import Face
  File "T:\STABLE DIFFUSION\STABLE DIFFUSION FORGE\stable-diffusion-webui-forge\venv\lib\site-packages\insightface\__init__.py", line 10, in <module>
    raise ImportError(
ImportError: Unable to import dependency onnxruntime.

what i have to do?

valtezar commented 1 month ago

I have the same problem, I haven’t been able to fix it for a month now.