s0md3v / sd-webui-roop

roop extension for StableDiffusion web-ui
GNU Affero General Public License v3.0
3.4k stars 880 forks source link

Problems with Roop extension #177

Open lotnick opened 1 year ago

lotnick commented 1 year ago

Hello, I just Installed Roop but I have a lot of problems. Anybody? Thanks!!!

2023-07-18 11:36:52.4434218 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:1827 onnxruntime::python::CreateInferencePybindStateModule] Init provider bridge failed. Error loading script: faceswap.py Traceback (most recent call last): File "C:\Users\lotni\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\lotni\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\lotni\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\faceswap.py", line 15, in from scripts.swapper import UpscaleOptions, swap_face, ImageResult File "C:\Users\lotni\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\swapper.py", line 12, in import insightface File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface__init.py", line 18, in from . import app File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface\app\init.py", line 2, in from .mask_renderer import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface\app\mask_renderer.py", line 4, in import albumentations as A File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\init.py", line 5, in from .augmentations import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\augmentations\init.py", line 8, in from .domain_adaptation import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\augmentations\domain_adaptation.py", line 6, in from qudida import DomainAdapter File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\qudida\init.py", line 6, in from sklearn.decomposition import PCA File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn\init.py", line 80, in from . import _distributor_init # noqa: F401 File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn_distributor_init.py", line 21, in WinDLL(op.abspath(vcomp140_dll_filename)) File "C:\Users\lotni\AppData\Local\Programs\Python\Python310\lib\ctypes\init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn.libs\vcomp140.dll' (or one of its dependencies). Try using the full path with constructor syntax.

2023-07-18 11:36:52,512 - Roop-GE - INFO - Roop-GE v0.2.1 Error loading script: swapper.py Traceback (most recent call last): File "C:\Users\lotni\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\lotni\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\lotni\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\swapper.py", line 12, in import insightface File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface__init.py", line 18, in from . import app File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface\app\init.py", line 2, in from .mask_renderer import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\insightface\app\mask_renderer.py", line 4, in import albumentations as A File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\init.py", line 5, in from .augmentations import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\augmentations\init.py", line 8, in from .domain_adaptation import * File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\albumentations\augmentations\domain_adaptation.py", line 6, in from qudida import DomainAdapter File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\qudida\init.py", line 6, in from sklearn.decomposition import PCA File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn\init.py", line 80, in from . import _distributor_init # noqa: F401 File "C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn_distributor_init.py", line 21, in WinDLL(op.abspath(vcomp140_dll_filename)) File "C:\Users\lotni\AppData\Local\Programs\Python\Python310\lib\ctypes\init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'C:\Users\lotni\stable-diffusion-webui\venv\lib\site-packages\sklearn.libs\vcomp140.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Gourieff commented 1 year ago

If you have two versions of Roop installed - you need to delete one Seems like some conflicts between extensions or dependencies versions mismatch Try to manually reinstall all dependencies (in activated venv) from requirements.txt inside the roop extension folder

lotnick commented 1 year ago

Thank You, I'll try. I have other two roop extensions but they are unchecked in extension tab. I'll try to delete them

lotnick commented 1 year ago

I did as you suggested, but the problem remains. I don't know whether to reinstall everything from scratch. Thank you

adde88 commented 1 year ago

Try installing Visual C++ Redistributable for Visual Studio 2015, and then after that re-install scikit-learn into your python environment (local, or venv) by using pip: pip install scikit-learn -U

I only recommend attempting it, in that order, because vscomp14.dll belongs to that Visual C++ package, and "sklearn.libs" belongs to sciktit-learn

lotnick commented 1 year ago

Thank You, I'll try

lotnick commented 1 year ago

Try installing Visual C++ Redistributable for Visual Studio 2015, and then after that re-install scikit-learn into your python environment (local, or venv) by using pip: pip install scikit-learn -U

I only recommend attempting it, in that order, because vscomp14.dll belongs to that Visual C++ package, and "sklearn.libs" belongs to sciktit-learn

Nope, Windows says they are already installed