Open Artemaister opened 1 year ago
Here it is already built package, you just need to unzip the archive (into the stable-diffusion-webui root) and install it like that (inside the activated VENV):
.\venv\Scripts\activate
python -m pip install -U pip
pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
You're a star! Worked like a charm. Thank you!
Here it is already built package, you just need to unzip the archive (into the stable-diffusion-webui root) and install it like that (inside the activated VENV):
- From stable-diffusion-webui root run CMD and
.\venv\Scripts\activate
- Then update your PIP as recommended
python -m pip install -U pip
- Then install Insightface:
pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
can you be more pecific, like step by step? I tried and it show this problem
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\stable-diffusion\stable-diffusion-webui\venv\Lib\site-packages\cv2\cv2.pyd' Check the permissions.
Same problem again and again. I must have reinstalled everything about 3 times now. Visual studio 17.6.5 Visual Studio Build Tools 17.6.5 Visual Studio 17.7.0 Kinda wanna give up at this point but maybe someone has some pointers. Maybe older version of VS works or something small that I'm missing? Python is v 10.8 Windows 11 64 bit Funny thing is I installed Python 11 by mistake the first time I went through with the whole installation. Stable deffusion, Git etc even installed this plug in but it didn't work so I decided to reinstall the whole lot and now here I am lol
C:\Users\ak91\AppData\Local\Temp\pip-install-lwmj92d8\insightface_f3bcd90237a94f88b8bfe056a4d316c9\insightface\thirdparty\face3d\mesh\cython\mesh_core.h(4): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32820\bin\HostX86\x64\cl.exe' failed with exit code 2 [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) C:\Users\ak91\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: scikit-image in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (0.20.0) Requirement already satisfied: matplotlib in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.2) Collecting easydict Using cached easydict-1.10-py3-none-any.whl Requirement already satisfied: requests in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.31.0) Collecting scikit-learn Using cached scikit_learn-1.3.0-cp310-cp310-win_amd64.whl (9.2 MB) Requirement already satisfied: numpy in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.23.5) Collecting albumentations Using cached albumentations-1.3.1-py3-none-any.whl (125 kB) Requirement already satisfied: tqdm in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.65.0) Collecting cython Using cached Cython-3.0.0-cp310-cp310-win_amd64.whl (2.8 MB) Collecting prettytable Using cached prettytable-3.8.0-py3-none-any.whl (27 kB) Requirement already satisfied: scipy in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.11.1) Requirement already satisfied: Pillow in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.5.0) Collecting onnx Using cached onnx-1.14.0-cp310-cp310-win_amd64.whl (13.3 MB) Collecting opencv-python-headless>=4.1.1 Using cached opencv_python_headless-4.8.0.74-cp37-abi3-win_amd64.whl (38.0 MB) Collecting qudida>=0.0.4 Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB) Requirement already satisfied: PyYAML in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from albumentations->insightface==0.7.3) (6.0.1) Requirement already satisfied: lazy_loader>=0.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3) Requirement already satisfied: tifffile>=2019.7.26 in c:\users\ak91\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\ak91\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: networkx>=2.8 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1) Requirement already satisfied: packaging>=20.0 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: imageio>=2.4.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.31.1) Requirement already satisfied: fonttools>=4.22.0 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.41.1) Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\users\ak91\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\ak91\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: cycler>=0.10 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: contourpy>=1.0.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.7.1) Collecting protobuf>=3.20.2 Using cached protobuf-4.23.4-cp310-abi3-win_amd64.whl (422 kB) Requirement already satisfied: wcwidth in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: certifi>=2017.4.17 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2023.5.7) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.16) Requirement already satisfied: idna<4,>=2.5 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.4) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\ak91\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.2.0) Collecting joblib>=1.1.1 Using cached joblib-1.3.1-py3-none-any.whl (301 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB) Requirement already satisfied: colorama in c:\users\ak91\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\ak91\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) 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 ╰─> [224 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\ak91\AppData\Local\Temp\pip-build-env-l_k94t6i\overlay\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the
packages
configuration. !!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
[notice] A new release of pip available: 22.2.2 -> 23.2 [notice] To update, run: python.exe -m pip install --upgrade pip
(venv) C:\Users\ak91\stable-diffusion-webui\venv\Scripts>`