Couldn't install sd-webui-faceswaplab requirement: insightface==0.7.3. #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I using the latest version of a1111 and the latest of gradio but I keep getting this huge error log when I launch a1111
( its really long sorry by advance )
Faceswaplab : Use GPU requirements
Checking faceswaplab requirements
Install insightface==0.7.3
Installing sd-webui-faceswaplab requirement: insightface==0.7.3
Couldn't install sd-webui-faceswaplab requirement: insightface==0.7.3.
Command: "C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install insightface==0.7.3 --prefer-binary
Error code: 1
stdout: 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: numpy in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.23.5)
Collecting onnx (from insightface==0.7.3)
Obtaining dependency information for onnx from https://files.pythonhosted.org/packages/00/36/e7a7e7a85564e7d409e4e8addfa11d41015d2190bfff30064771e7c21ca0/onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata
Downloading onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata (15 kB)
Requirement already satisfied: tqdm in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.65.0)
Requirement already satisfied: requests in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.31.0)
Requirement already satisfied: matplotlib in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.2)
Requirement already satisfied: Pillow in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.5.0)
Requirement already satisfied: scipy in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.11.1)
Requirement already satisfied: scikit-learn in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.3.0)
Requirement already satisfied: scikit-image in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (0.21.0)
Collecting easydict (from insightface==0.7.3)
Using cached easydict-1.10-py3-none-any.whl
Requirement already satisfied: cython in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.0.2)
Collecting albumentations (from insightface==0.7.3)
Obtaining dependency information for albumentations from https://files.pythonhosted.org/packages/9b/f6/c486cedb4f75147232f32ec4c97026714cfef7c7e247a1f0427bc5489f66/albumentations-1.3.1-py3-none-any.whl.metadata
Downloading albumentations-1.3.1-py3-none-any.whl.metadata (34 kB)
Collecting prettytable (from insightface==0.7.3)
Obtaining dependency information for prettytable from https://files.pythonhosted.org/packages/25/1e/4c284713b092ec384fad4399452f43f6446ad9aabc9c0b3c3c0920cc53b6/prettytable-3.8.0-py3-none-any.whl.metadata
Downloading prettytable-3.8.0-py3-none-any.whl.metadata (26 kB)
Requirement already satisfied: PyYAML in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (6.0.1)
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 c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (4.8.0.76)
Requirement already satisfied: networkx>=2.8 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1)
Requirement already satisfied: imageio>=2.27 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.31.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.7.18)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1)
Requirement already satisfied: packaging>=21 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1)
Requirement already satisfied: lazy_loader>=0.2 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.41.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2)
Collecting protobuf>=3.20.2 (from onnx->insightface==0.7.3)
Obtaining dependency information for protobuf>=3.20.2 from https://files.pythonhosted.org/packages/5e/46/5b9674a33cbf690ffdd79ab1863767a66461cd06ea7aeb9f90e4e50be7a5/protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata
Downloading protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata (540 bytes)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.7.1)
Requirement already satisfied: wcwidth in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2023.7.22)
Requirement already satisfied: joblib>=1.1.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.2.0)
Requirement already satisfied: colorama in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6)
Requirement already satisfied: six>=1.5 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0)
Using cached albumentations-1.3.1-py3-none-any.whl (125 kB)
Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl (13.3 MB)
Using cached prettytable-3.8.0-py3-none-any.whl (27 kB)
Using cached protobuf-4.24.3-cp310-abi3-win_amd64.whl (430 kB)
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
stderr: WARNING: Ignoring invalid distribution -ediapipe (c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages)
error: subprocess-exited-with-error
Building wheel for insightface (pyproject.toml) did not run successfully.
exit code: 1
[214 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\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the
packagesconfiguration.!!
!!
check.warn(importable)
C:\Users\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.data.images' is absent from the
packagesconfiguration.!!
!!
check.warn(importable)
C:\Users\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.data.objects' is absent from the
packagesconfiguration.!!
!!
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.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
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
Warning: Failed to install insightface==0.7.3, faceswaplab may not work. Try to restart server or install dependencies manually.
FaceswapLab install failed Couldn't install sd-webui-faceswaplab requirement: insightface==0.7.3.
Command: "C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install insightface==0.7.3 --prefer-binary
Error code: 1
stdout: 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: numpy in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.23.5)
Collecting onnx (from insightface==0.7.3)
Obtaining dependency information for onnx from https://files.pythonhosted.org/packages/00/36/e7a7e7a85564e7d409e4e8addfa11d41015d2190bfff30064771e7c21ca0/onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata
Downloading onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata (15 kB)
Requirement already satisfied: tqdm in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.65.0)
Requirement already satisfied: requests in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.31.0)
Requirement already satisfied: matplotlib in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.2)
Requirement already satisfied: Pillow in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.5.0)
Requirement already satisfied: scipy in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.11.1)
Requirement already satisfied: scikit-learn in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.3.0)
Requirement already satisfied: scikit-image in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (0.21.0)
Collecting easydict (from insightface==0.7.3)
Using cached easydict-1.10-py3-none-any.whl
Requirement already satisfied: cython in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.0.2)
Collecting albumentations (from insightface==0.7.3)
Obtaining dependency information for albumentations from https://files.pythonhosted.org/packages/9b/f6/c486cedb4f75147232f32ec4c97026714cfef7c7e247a1f0427bc5489f66/albumentations-1.3.1-py3-none-any.whl.metadata
Downloading albumentations-1.3.1-py3-none-any.whl.metadata (34 kB)
Collecting prettytable (from insightface==0.7.3)
Obtaining dependency information for prettytable from https://files.pythonhosted.org/packages/25/1e/4c284713b092ec384fad4399452f43f6446ad9aabc9c0b3c3c0920cc53b6/prettytable-3.8.0-py3-none-any.whl.metadata
Downloading prettytable-3.8.0-py3-none-any.whl.metadata (26 kB)
Requirement already satisfied: PyYAML in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (6.0.1)
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 c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (4.8.0.76)
Requirement already satisfied: networkx>=2.8 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1)
Requirement already satisfied: imageio>=2.27 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.31.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.7.18)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1)
Requirement already satisfied: packaging>=21 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1)
Requirement already satisfied: lazy_loader>=0.2 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.41.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2)
Collecting protobuf>=3.20.2 (from onnx->insightface==0.7.3)
Obtaining dependency information for protobuf>=3.20.2 from https://files.pythonhosted.org/packages/5e/46/5b9674a33cbf690ffdd79ab1863767a66461cd06ea7aeb9f90e4e50be7a5/protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata
Downloading protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata (540 bytes)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.7.1)
Requirement already satisfied: wcwidth in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2023.7.22)
Requirement already satisfied: joblib>=1.1.1 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.2.0)
Requirement already satisfied: colorama in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6)
Requirement already satisfied: six>=1.5 in c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0)
Using cached albumentations-1.3.1-py3-none-any.whl (125 kB)
Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl (13.3 MB)
Using cached prettytable-3.8.0-py3-none-any.whl (27 kB)
Using cached protobuf-4.24.3-cp310-abi3-win_amd64.whl (430 kB)
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
stderr: WARNING: Ignoring invalid distribution -ediapipe (c:\users\admin\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages)
error: subprocess-exited-with-error
Building wheel for insightface (pyproject.toml) did not run successfully.
exit code: 1
[214 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\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the
packagesconfiguration.!!
!!
check.warn(importable)
C:\Users\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.data.images' is absent from the
packagesconfiguration.!!
!!
check.warn(importable)
C:\Users\Admin\AppData\Local\Temp\pip-build-env-21vr7lym\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'insightface.data.objects' is absent from the
packagesconfiguration.!!
!!
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.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
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
You can try to install dependencies manually by activating venv and installing requirements.txt or requirements-gpu.txt
Launching Web UI with arguments: --xformers
[-] ADetailer initialized. version: 23.9.2, num models: 9
2023-09-10 23:55:42,441 - ControlNet - INFO - ControlNet v1.1.409
ControlNet preprocessor location: C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-09-10 23:55:42,503 - ControlNet - INFO - ControlNet v1.1.409
*** Error loading script: faceswaplab.py
Traceback (most recent call last):
File "C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\Admin\Documents\Stable diffusion\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\Admin\Documents\Stable diffusion\stable-diffusion-webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab.py", line 10, in
from scripts.faceswaplab_api import faceswaplab_api
File "C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_api\faceswaplab_api.py", line 12, in
from scripts.faceswaplab_swapping import swapper
File "C:\Users\Admin\Documents\Stable diffusion\stable-diffusion-webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_swapping\swapper.py", line 14, in
import insightface
ModuleNotFoundError: No module named 'insightface'
Thanks
fixed by installing https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/