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.47k stars 264 forks source link

Error loading script: reactor_version.py / ModuleNotFoundError: No module named 'insightface' #324

Closed kassabro closed 8 months ago

kassabro commented 8 months ago

First, confirm

What happened?

i tried troubleshooting also , i first tried to install from [AUTOMATIC1111 web-ui] 1st time when downloading my connection drops and stop the installation , and when i try 2nd time this error is keep on showing , i even tried cloning and manually putting the models in the right directories but the same error keep showing when i lunch web-ui with reactor on.

Steps to reproduce the problem

  1. Go to web-ui
  2. Press webui.bat
  3. reactor error comes but web-ui runs without it.

Sysinfo

im using windows with nividia GTX 1070 8gb with A1111 web-ui

Relevant console log

Error loading script: reactor_version.py                                                                                Traceback (most recent call last):                                                                                        File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts                                         script_module = script_loading.load_module(scriptfile.path)                                                           File "E:\AI\stable-diffusion-webui\modules\script_loading.py", line 11, 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 "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in <module>            from scripts.reactor_helpers import addLoggingLevel                                                                   File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in <module>          from insightface.app.common import Face                                                                             ModuleNotFoundError: No module named 'insightface'

Additional information

venv "E:\AI\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 Installing requirements for Web UI Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: onnx in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.15.0) Requirement already satisfied: numpy in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.23.3) Requirement already satisfied: cython in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.0.8) Collecting scikit-learn Using cached scikit_learn-1.3.2-cp310-cp310-win_amd64.whl (9.3 MB) Requirement already satisfied: scipy in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.10.1) Requirement already satisfied: matplotlib in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.0) Requirement already satisfied: Pillow in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.4.0) Collecting prettytable Using cached prettytable-3.9.0-py3-none-any.whl (27 kB) Requirement already satisfied: tqdm in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.64.1) Collecting albumentations Using cached albumentations-1.3.1-py3-none-any.whl (125 kB) Collecting easydict Using cached easydict-1.11-py3-none-any.whl Requirement already satisfied: requests in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.25.1) Requirement already satisfied: scikit-image in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (0.19.2) Collecting opencv-python-headless>=4.1.1 Using cached opencv_python_headless-4.9.0.80-cp37-abi3-win_amd64.whl (38.5 MB) Collecting qudida>=0.0.4 Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB) Requirement already satisfied: PyYAML in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (6.0) Requirement already satisfied: networkx>=2.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.0) Requirement already satisfied: packaging>=20.0 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.0) Requirement already satisfied: imageio>=2.4.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.25.1) Requirement already satisfied: tifffile>=2019.7.26 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.2.3) Requirement already satisfied: PyWavelets>=1.1.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: fonttools>=4.22.0 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.38.0) Requirement already satisfied: cycler>=0.10 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: python-dateutil>=2.7 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: contourpy>=1.0.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.0.7) Requirement already satisfied: pyparsing>=2.3.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: kiwisolver>=1.0.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: protobuf>=3.20.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.25.2) Requirement already satisfied: wcwidth in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: chardet<5,>=3.0.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7) Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.14) Requirement already satisfied: idna<3,>=2.5 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2.10) Collecting joblib>=1.1.1 Using cached joblib-1.3.2-py3-none-any.whl (302 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB) Requirement already satisfied: colorama in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) Requirement already satisfied: typing-extensions in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from qudida>=0.0.4->albumentations->insightface==0.7.3) (4.5.0) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml): started Building wheel for insightface (pyproject.toml): finished with status 'error' Failed to build insightface Error: The 'insightface==0.7.3' distribution was not found and is required by the application +---------------------------------+ --- PLEASE, RESTART the Server! --- +---------------------------------+ Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Error loading script: console_log_patch.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\console_log_patch.py", line 4, in import insightface ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_api.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_api.py", line 17, in from scripts.reactor_swapper import EnhancementOptions, swap_face File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_faceswap.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 18, in from reactor_ui import ui_main, ui_upscale, ui_tools, ui_settings File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\reactor_ui__init__.py", line 2, in import reactor_ui.reactor_tools_ui as ui_tools File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\reactor_ui\reactor_tools_ui.py", line 2, in from scripts.reactor_swapper import build_face_model File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_helpers.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_logger.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in from scripts.reactor_helpers import addLoggingLevel File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_swapper.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface' Error loading script: reactor_version.py Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\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 "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_version.py", line 4, in from scripts.reactor_logger import logger, get_Run, set_Run File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in from scripts.reactor_helpers import addLoggingLevel File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface' Loading weights [71e14760e2] from E:\AI\stable-diffusion-webui\models\Stable-diffusion\lazymixRealAmateur_v30b.safetensors Creating model from config: E:\AI\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying cross attention optimization (Doggettx). Textual inversion embeddings loaded(0): Model loaded in 22.6s (load weights from disk: 0.2s, create model: 0.9s, apply weights to model: 7.3s, apply half(): 1.8s, move model to device: 1.2s, load textual inversion embeddings: 11.2s).

No response

kassabro commented 8 months ago

Microsoft Windows [Version 10.0.19045.3930] (c) Microsoft Corporation. All rights reserved. E:\AI\stable-diffusion-webui\venv\Scripts>....\Assets\Python310\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl The system cannot find the path specified. E:\AI\stable-diffusion-webui\venv\Scripts>pip install insightface-0.7.3-cp310-cp310-win_amd64.whl WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Requirement 'insightface-0.7.3-cp310-cp310-win_amd64.whl' looks like a filename, but the file does not exist WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) Processing e:\ai\stable-diffusion-webui\venv\scripts\insightface-0.7.3-cp310-cp310-win_amd64.whl ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'E:\AI\stable-diffusion-webui\venv\Scripts\insightface-0.7.3-cp310-cp310-win_amd64.whl' WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) [notice] A new release of pip available: 22.3.1 -> 23.3.2 [notice] To update, run: python.exe -m pip install --upgrade pip E:\AI\stable-diffusion-webui\venv\Scripts>pip install insightface-0.7.3-cp310-cp310-win_amd64.whl WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Requirement 'insightface-0.7.3-cp310-cp310-win_amd64.whl' looks like a filename, but the file does not exist WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) Processing e:\ai\stable-diffusion-webui\venv\scripts\insightface-0.7.3-cp310-cp310-win_amd64.whl ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'E:\AI\stable-diffusion-webui\venv\Scripts\insightface-0.7.3-cp310-cp310-win_amd64.whl' WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (e:\ai\stable-diffusion-webui\venv\lib\site-packages) [notice] A new release of pip available: 22.3.1 -> 23.3.2 [notice] To update, run: python.exe -m pip install --upgrade pip E:\AI\stable-diffusion-webui\venv\Scripts>

kassabro commented 8 months ago

image

Gourieff commented 8 months ago

https://github.com/Gourieff/sd-webui-reactor#ii-any-problems-with-installing-insightface-or-other-dependencies

https://github.com/Gourieff/sd-webui-reactor#viii-for-windows-users-if-you-still-cannot-build-insightface-for-some-reasons-or-just-dont-want-to-install-visual-studio-or-vs-c-build-tools---do-the-following

kassabro commented 8 months ago

Microsoft Windows [Version 10.0.19045.3930] (c) Microsoft Corporation. All rights reserved. E:\AI\stable-diffusion-webui\venv\Scripts>activate (venv) E:\AI\stable-diffusion-webui\venv\Scripts>pip install -U pip Requirement already satisfied: pip in e:\ai\stable-diffusion-webui\venv\lib\site-packages (22.3.1) Collecting pip Using cached pip-23.3.2-py3-none-any.whl (2.1 MB) ERROR: To modify pip, please run the following command: E:\AI\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -U pip [notice] A new release of pip available: 22.3.1 -> 23.3.2 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) E:\AI\stable-diffusion-webui\venv\Scripts>python.exe -m pip install --upgrade pip Requirement already satisfied: pip in e:\ai\stable-diffusion-webui\venv\lib\site-packages (22.3.1) Collecting pip Using cached pip-23.3.2-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 22.3.1 Uninstalling pip-22.3.1: Successfully uninstalled pip-22.3.1 Successfully installed pip-23.3.2 (venv) E:\AI\stable-diffusion-webui\venv\Scripts>E:\AI\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -U pip Requirement already satisfied: pip in e:\ai\stable-diffusion-webui\venv\lib\site-packages (23.3.2) DEPRECATION: pytorch-lightning 1.7.6 has a non-standard dependency specifier torch>=1.9.. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.; python_version >= "3.7". pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 (venv) E:\AI\stable-diffusion-webui\venv\Scripts>pip install insightface==0.7.3 Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.23.3) Requirement already satisfied: onnx in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.15.0) Requirement already satisfied: tqdm in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.64.1) Requirement already satisfied: requests in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.25.1) Requirement already satisfied: matplotlib in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.0) Requirement already satisfied: Pillow in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.4.0) Requirement already satisfied: scipy in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.10.1) Collecting scikit-learn (from insightface==0.7.3) Using cached scikit_learn-1.3.2-cp310-cp310-win_amd64.whl.metadata (11 kB) Requirement already satisfied: scikit-image in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (0.19.2) Collecting easydict (from insightface==0.7.3) Using cached easydict-1.11-py3-none-any.whl Requirement already satisfied: cython in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.0.8) Collecting albumentations (from insightface==0.7.3) Using cached albumentations-1.3.1-py3-none-any.whl.metadata (34 kB) Collecting prettytable (from insightface==0.7.3) Using cached prettytable-3.9.0-py3-none-any.whl.metadata (26 kB) Requirement already satisfied: PyYAML in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (6.0) Collecting qudida>=0.0.4 (from albumentations->insightface==0.7.3) Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB) Requirement already satisfied: opencv-python-headless>=4.1.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (4.9.0.80) Requirement already satisfied: networkx>=2.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.0) Requirement already satisfied: imageio>=2.4.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.25.1) Requirement already satisfied: tifffile>=2019.7.26 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.2.3) Requirement already satisfied: PyWavelets>=1.1.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=20.0 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.0) Requirement already satisfied: contourpy>=1.0.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.0.7) Requirement already satisfied: cycler>=0.10 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.38.0) Requirement already satisfied: kiwisolver>=1.0.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: pyparsing>=2.3.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: protobuf>=3.20.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.25.2) Requirement already satisfied: wcwidth in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: chardet<5,>=3.0.2 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.14) Requirement already satisfied: certifi>=2017.4.17 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7) Collecting joblib>=1.1.1 (from scikit-learn->insightface==0.7.3) Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB) Collecting threadpoolctl>=2.0.0 (from scikit-learn->insightface==0.7.3) Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB) Requirement already satisfied: colorama in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) Requirement already satisfied: typing-extensions in e:\ai\stable-diffusion-webui\venv\lib\site-packages (from qudida>=0.0.4->albumentations->insightface==0.7.3) (4.5.0) Using cached albumentations-1.3.1-py3-none-any.whl (125 kB) Using cached prettytable-3.9.0-py3-none-any.whl (27 kB) Using cached scikit_learn-1.3.2-cp310-cp310-win_amd64.whl (9.3 MB) Using cached joblib-1.3.2-py3-none-any.whl (302 kB) Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for insightface (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [215 lines of output] WARNING: pandoc not enabled running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\insightface copying insightface__init__.py -> build\lib.win-amd64-cpython-310\insightface creating build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app__init__.py -> build\lib.win-amd64-cpython-310\insightface\app creating build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands__init__.py -> build\lib.win-amd64-cpython-310\insightface\commands creating build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data__init__.py -> build\lib.win-amd64-cpython-310\insightface\data creating build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo__init__.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo creating build\lib.win-amd64-cpython-310\insightface\thirdparty copying insightface\thirdparty__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty creating build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils__init__.py -> build\lib.win-amd64-cpython-310\insightface\utils creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d copying insightface\thirdparty\face3d__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model running egg_info writing insightface.egg-info\PKG-INFO writing dependency_links to insightface.egg-info\dependency_links.txt writing entry points to insightface.egg-info\entry_points.txt writing requirements to insightface.egg-info\requires.txt writing top-level names to insightface.egg-info\top_level.txt reading manifest file 'insightface.egg-info\SOURCES.txt' writing manifest file 'insightface.egg-info\SOURCES.txt' C:\Users\user\AppData\Local\Temp\pip-build-env-_jcapexr\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the packages configuration. !! **** ############################ # Package would be ignored # ############################ Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1], but it is absent from setuptools' packages configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added to the packages configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using find_namespace_packages(...)/find_namespace: instead of find_packages(...)/find:). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via find_namespace_packages(...)/find_namespace or find_packages(...)/find, you can try to use exclude_package_data, or include-package-data=False in combination with a more fine grained package-data configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any .py files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. **** !! check.warn(importable) C:\Users\user\AppData\Local\Temp\pip-build-env-_jcapexr\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.images' is absent from the packages configuration. !! **** ############################ # Package would be ignored # ############################ Python recognizes 'insightface.data.images' as an importable package[^1], but it is absent from setuptools' packages configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'insightface.data.images' is explicitly added to the packages configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using find_namespace_packages(...)/find_namespace: instead of find_packages(...)/find:). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'insightface.data.images' to be distributed and are already explicitly excluding 'insightface.data.images' via find_namespace_packages(...)/find_namespace or find_packages(...)/find, you can try to use exclude_package_data, or include-package-data=False in combination with a more fine grained package-data configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any .py files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. **** !! check.warn(importable) C:\Users\user\AppData\Local\Temp\pip-build-env-_jcapexr\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.objects' is absent from the packages configuration. !! **** ############################ # Package would be ignored # ############################ Python recognizes 'insightface.data.objects' as an importable package[^1], but it is absent from setuptools' packages configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'insightface.data.objects' is explicitly added to the packages configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using find_namespace_packages(...)/find_namespace: instead of find_packages(...)/find:). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'insightface.data.objects' to be distributed and are already explicitly excluding 'insightface.data.objects' via find_namespace_packages(...)/find_namespace or find_packages(...)/find, you can try to use exclude_package_data, or include-package-data=False in combination with a more fine grained package-data configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any .py files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. **** !! check.warn(importable) creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython creating build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images creating build\lib.win-amd64-cpython-310\insightface\data\objects copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-310\insightface\data\objects copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython running build_ext building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-**build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for insightface Failed to build insightface ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects** (venv) E:\AI\stable-diffusion-webui\venv\Scripts>

Getting this error , that says could not build wheels for insightface why is that , i already download and add the models also.

kassabro commented 8 months ago

i also

image

i also have the visual studio 2022

901HERNANAI commented 8 months ago

Im on the same!!!! IM A NEWBIE AND NEED HELP

901HERNANAI commented 8 months ago

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.7.0 Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Error: The 'insightface==0.7.3' distribution was not found and is required by the application

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

Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Checking -=ReActor Force=- requirements... Error: The 'insightface==0.7.3' distribution was not found and is required by the application

--- PLEASE, RESTART the Server! --- Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Style database not found: C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\styles.csv *** Error loading script: console_log_patch.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\console_log_patch.py", line 4, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_api.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_api.py", line 17, in from scripts.reactor_swapper import EnhancementOptions, swap_face File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_faceswap.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 18, in from reactor_ui import ui_main, ui_upscale, ui_tools, ui_settings File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\reactor_ui__init__.py", line 2, in import reactor_ui.reactor_tools_ui as ui_tools File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\reactor_ui\reactor_tools_ui.py", line 2, in from scripts.reactor_swapper import build_face_model File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_helpers.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_logger.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in from scripts.reactor_helpers import addLoggingLevel File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_swapper.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: reactor_version.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_version.py", line 4, in from scripts.reactor_logger import logger, get_Run, set_Run File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_logger.py", line 7, in from scripts.reactor_helpers import addLoggingLevel File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor\scripts\reactor_helpers.py", line 10, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface'


*** Error loading script: rf_api.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_api.py", line 17, in from scripts.rf_swapper import EnhancementOptions, swap_face File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: rf_console_log_patch.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_console_log_patch.py", line 4, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: rf_faceswap.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_faceswap.py", line 26, in from scripts.rf_swapper import EnhancementOptions, swap_face, check_process_halt, reset_messaged File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: rf_swapper.py Traceback (most recent call last): File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\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 "C:\Users\Christian\Desktop\AI ART GENERATOR\STABLE DIFFUSION\webui\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 10, in import insightface ModuleNotFoundError: No module named 'insightface'

Gourieff commented 8 months ago

Please read the instruction about this error and follow other closed issues https://github.com/Gourieff/sd-webui-reactor/issues?q=is%3Aissue+is%3Aclosed+ModuleNotFoundError%3A+No+module+named+%27insightface%27

This is the very common error You need C++ BT in your OS to successfully build Insightface Or you can just install already pre-built package How to do it? Please read the instruction I'm really tired of explaining the same things again and again only because some people don't want to read the instruction carefully or other already solved threads

kassabro commented 8 months ago

Sry about that i install the full version with the desktop development, and then install insightface and it installed this time , but when i ran the webui.bat on it fail to load any models even the normal stable diffusion models.

venv "E:\AI\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 Installing requirements for Web UI Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Loading weights [71e14760e2] from E:\AI\stable-diffusion-webui\models\Stable-diffusion\lazymixRealAmateur_v30b.safetensors Creating model from config: E:\AI\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode Failed to create model quickly; will retry using slow method. LatentDiffusion: Running in eps-prediction mode loading stable diffusion model: RuntimeError Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\webui.py", line 111, in initialize modules.sd_models.load_model() File "E:\AI\stable-diffusion-webui\modules\sd_models.py", line 406, in load_model sd_model = instantiate_from_config(sd_config.model) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 550, in init super().init(conditioning_key=conditioning_key, args, kwargs) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 92, in init self.model = DiffusionWrapper(unet_config, conditioning_key) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 1314, in init self.diffusion_model = instantiate_from_config(diff_model_config) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\diffusionmodules\openaimodel.py", line 667, in init ResBlock( File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\diffusionmodules\openaimodel.py", line 229, in init conv_nd(dims, self.out_channels, self.out_channels, 3, padding=1) File "E:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\diffusionmodules\util.py", line 228, in conv_nd return nn.Conv2d(args, kwargs) File "E:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py", line 450, in init super(Conv2d, self).init( File "E:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py", line 137, in init self.weight = Parameter(torch.empty( RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 14745600 bytes. Stable diffusion model failed to load, exiting Press any key to continue . . .

image

Gourieff commented 8 months ago

I think there's smth wrong with pagefile settings in your OS (or maybe not enough RAM), try to follow these threads:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11033

https://www.reddit.com/r/StableDiffusion/comments/x8in2x/memory_error_ram/

kassabro commented 8 months ago

yaa , i fixed it , and the it ran without reactor , when i re-enable the extension, it almost works , and gave a new error

Launching Web UI with arguments: No module 'xformers'. Proceeding without it. 18:07:21 - ReActor - STATUS - Running v0.6.0 on Device: CUDA Loading weights [71e14760e2] from E:\AI\stable-diffusion-webui\models\Stable-diffusion\lazymixRealAmateur_v30b.safetensors Creating model from config: E:\AI\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying cross attention optimization (Doggettx). Textual inversion embeddings loaded(0): Model loaded in 18.9s (load weights from disk: 0.1s, create model: 0.7s, apply weights to model: 4.3s, apply half(): 2.0s, move model to device: 1.0s, load textual inversion embeddings: 10.7s). Error calling: E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 243, in wrap_call res = func(*args, kwargs) File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 44, in ui with ui_components.InputAccordion(False, label=f"{app_title}") as enable: AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' Error calling: E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts.py", line 243, in wrap_call res = func(*args, *kwargs) File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 44, in ui with ui_components.InputAccordion(False, label=f"{app_title}") as enable: AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' calling E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui: AttributeError Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\modules\scripts_postprocessing.py", line 53, in wrap_call res = func(args, kwargs) File "E:\AI\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 414, in ui with ui_components.InputAccordion(False, label=f"{app_title}") as enable: AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' Traceback (most recent call last): File "E:\AI\stable-diffusion-webui\launch.py", line 361, in start() File "E:\AI\stable-diffusion-webui\launch.py", line 356, in start webui.webui() File "E:\AI\stable-diffusion-webui\webui.py", line 205, in webui shared.demo = modules.ui.create_ui() File "E:\AI\stable-diffusion-webui\modules\ui.py", line 975, in create_ui ui_postprocessing.create_ui() File "E:\AI\stable-diffusion-webui\modules\ui_postprocessing.py", line 25, in create_ui script_inputs = scripts.scripts_postproc.setup_ui() File "E:\AI\stable-diffusion-webui\modules\scripts_postprocessing.py", line 113, in setup_ui self.create_script_ui(script, inputs) File "E:\AI\stable-diffusion-webui\modules\scripts_postprocessing.py", line 84, in create_script_ui for control in script.controls.values(): AttributeError: 'NoneType' object has no attribute 'values' Press any key to continue . . .
image

kassabro commented 8 months ago

does i need xformers ? , sry to bother you brother , i install reactor several times but this is the most closed to running , always something missing...

Gourieff commented 8 months ago

AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion'

You should update A1111 to the latest version (1.7.0)

kassabro commented 8 months ago

Thanks brother it works, now perfectly, your the best contributor,

Resolving deltas: 100% (436/436), done. Fetching updates for K-diffusion... Checking out commit for K-diffusion with hash: ab527a9a6d347f364e3d185ba6d714e22d80cb3c... Previous HEAD position was 5b3af03 Release 0.0.12 HEAD is now at ab527a9 Release 0.0.16 Installing requirements Launching Web UI with arguments: no module 'xformers'. Processing without... No SDP backend available, likely because you are running in pytorch versions < 2.0. In fact, you are using PyTorch 1.13.1+cu117. You might want to consider upgrading. no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Style database not found: E:\AI\stable-diffusion-webui\styles.csv ============================================================================== You are running torch 1.13.1+cu117. The program is tested to work with torch 2.0.0. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version. Use --skip-version-check commandline argument to disable this check. ============================================================================== 06:35:18 - ReActor - STATUS - Running v0.6.0 on Device: CUDA Loading weights [71e14760e2] from E:\AI\stable-diffusion-webui\models\Stable-diffusion\lazymixRealAmateur_v30b.safetensors Running on local URL: http://127.0.0.1:7860 To create a public link, set share=True in launch(). Creating model from config: E:\AI\stable-diffusion-webui\configs\v1-inference.yaml Startup time: 155.6s (prepare environment: 131.0s, launcher: 0.1s, import torch: 10.8s, import gradio: 3.5s, setup paths: 2.3s, initialize shared: 0.6s, other imports: 2.7s, setup codeformer: 0.2s, list SD models: 0.2s, load scripts: 2.8s, initialize extra networks: 0.1s, create ui: 0.6s, gradio launch: 0.5s). Applying attention optimization: Doggettx... done. 00001-2858301324

kassabro commented 8 months ago

AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion'

You should update A1111 to the latest version (1.7.0)

if anyone had this error make sure you have visual studio 2022 , and then follow these threads sent by the Gourieff. cant thank you enough.