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

Runtime Error #44

Open
SedidX opened this issue Jul 17, 2024 · 1 comment
Open

Runtime Error #44

SedidX opened this issue Jul 17, 2024 · 1 comment

Comments

@SedidX
Copy link

SedidX commented Jul 17, 2024

Hi,
I have installed Rembg with the extension tab, as indicated on the official github, and it didn't work. There's nothing in the Extra tab. Can someone help please ?

Here is my error:

*** Error loading script: api.py
    Traceback (most recent call last):
      File "S:\Stable Diffusion\webui\modules\scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "S:\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 "S:\Stable Diffusion\webui\extensions\stable-diffusion-webui-rembg\scripts\api.py", line 7, in <module>
        import rembg
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\rembg\__init__.py", line 5, in <module>
        from .bg import remove
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\rembg\bg.py", line 21, in <module>
        from .session_factory import new_session
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\rembg\session_factory.py", line 4, in <module>
        import onnxruntime as ort
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\onnxruntime\__init__.py", line 57, in <module>
        raise import_capi_exception
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\onnxruntime\__init__.py", line 23, in <module>
        from onnxruntime.capi._pybind_state import ExecutionMode  # noqa: F401
      File "S:\Stable Diffusion\webui\venv\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module>
        from .onnxruntime_pybind11_state import *  # noqa
    ImportError: DLL load failed while importing onnxruntime_pybind11_state: Une routine d’initialisation d’une bibliothèque de liens dynamiques (DLL) a échoué.

---
*** Error loading script: postprocessing_rembg.py
    Traceback (most recent call last):
      File "S:\Stable Diffusion\webui\modules\scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "S:\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 "S:\Stable Diffusion\webui\extensions\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py", line 6, in <module>

I saw on internet it might have something to do with english and utf-8. But how to change that on SB?
image

@SedidX
Copy link
Author

SedidX commented Jul 17, 2024

I succeed to install it, when changing all the locales and now I have this error (attached files).
rembg error2

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