numz / sd-wav2lip-uhq

Wav2Lip UHQ extension for Automatic1111
Apache License 2.0
1.26k stars 166 forks source link

urllib.error.URLError #45

Open Rain-killer opened 1 year ago

Rain-killer commented 1 year ago

Downloading the detection model to C:\Users\unis.ifnude/detector.onnx *** Error loading script: ui.py Traceback (most recent call last): File "urllib\request.py", line 1348, in do_open File "http\client.py", line 1283, in request File "http\client.py", line 1329, in _send_request File "http\client.py", line 1278, in endheaders File "http\client.py", line 1038, in _send_output File "http\client.py", line 976, in send File "http\client.py", line 1448, in connect File "http\client.py", line 942, in connect File "socket.py", line 845, in create_connection File "socket.py", line 833, in create_connection TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\sd-webui-aki-v4\modules\scripts.py", line 382, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\sd-webui-aki-v4\modules\script_loading.py", line 10, 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 "D:\sd-webui-aki-v4\extensions\sd-wav2lip-uhq-main\scripts\ui.py", line 8, in <module>
    from scripts.faceswap.swap import FaceSwap
  File "D:\sd-webui-aki-v4\extensions\sd-wav2lip-uhq-main\scripts\faceswap\swap.py", line 16, in <module>
    from ifnude import detect
  File "D:\sd-webui-aki-v4\py310\lib\site-packages\ifnude\__init__.py", line 1, in <module>
    from .detector import detect
  File "D:\sd-webui-aki-v4\py310\lib\site-packages\ifnude\detector.py", line 36, in <module>
    download(model_url, model_path)
  File "D:\sd-webui-aki-v4\py310\lib\site-packages\ifnude\detector.py", line 16, in download
    request = urllib.request.urlopen(url)
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 519, in open
  File "urllib\request.py", line 536, in _open
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 1391, in https_open
  File "urllib\request.py", line 1351, in do_open
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>

Downloading the detection model to C:\Users\unis.ifnude/detector.onnx *** Error loading script: wav2lip_uhq.py Traceback (most recent call last): File "urllib\request.py", line 1348, in do_open File "http\client.py", line 1283, in request File "http\client.py", line 1329, in _send_request File "http\client.py", line 1278, in endheaders File "http\client.py", line 1038, in _send_output File "http\client.py", line 976, in send File "http\client.py", line 1448, in connect File "http\client.py", line 942, in connect File "socket.py", line 845, in create_connection File "socket.py", line 833, in create_connection TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

a66573334 commented 1 year ago

i got a similar issue, logs as below, seems like this plugin needs to connect to huggingface.co but timeout

i have already install the models and pacakges required

Traceback (most recent call last): File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\file_download.py", line 1230, in hf_hub_download metadata = get_hf_file_metadata( File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\file_download.py", line 1597, in get_hf_file_metadata r = _request_wrapper( File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\file_download.py", line 417, in _request_wrapper response = _request_wrapper( File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\file_download.py", line 452, in _request_wrapper return http_backoff( File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\utils_http.py", line 274, in http_backoff raise err File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\utils_http.py", line 258, in http_backoff response = session.request(method=method, url=url, kwargs) File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, kwargs) File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\huggingface_hub\utils_http.py", line 63, in send return super().send(request, args, **kwargs) File "D:\ai\sd-webui-aki-v4\py310\lib\site-packages\requests\adapters.py", line 504, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /suno/bark/resolve/main/text.pt (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001092143FBE0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 9ec69f0d-2f8e-4db7-bee2-2a3e1877e1ae)')

holycowdude commented 1 year ago

The last update broke my sd-wav2lip-uhq install as well

numz commented 1 year ago

@Rain-killer Hi, It seems there is an issue to download the detector.onnx modèle on huggingface.co... try to manually download it on https://huggingface.co/s0md3v/nudity-checker/resolve/main/detector.onnx And install it in C:\Users\unis.ifnude/detector.onnx

@a66573334 Hi, Not sur that the same issue because yours seems need to download bark files https://huggingface.co/suno/bark

@holycowdude can you tell me more, Let see logs please

holycowdude commented 1 year ago

@numz Hi, this is the error I get and I dont see the Wav2Lip tab any more so I have to load a backup

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 WARNING:xformers:A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' H:\A1111\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: pytorch_lightning.utilities.distributed.rank_zero_only has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from pytorch_lightning.utilities instead. rank_zero_deprecation( Error running install.py for extension H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq. Command: "H:\A1111\stable-diffusion-webui\venv\Scripts\python.exe" "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\install.py" Error code: 1 stdout: Installing wav2lip_uhq requirement: dlib-bin Installing wav2lip_uhq requirement: opencv-python Installing wav2lip_uhq requirement: pillow Installing wav2lip_uhq requirement: librosa==0.10.0.post2 Installing wav2lip_uhq requirement: opencv-contrib-python Installing wav2lip_uhq requirement: git+https://github.com/suno-ai/bark.git Installing wav2lip_uhq requirement: insightface==0.7.3


stderr: Traceback (most recent call last): File "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\install.py", line 10, in launch.run_pip(f"install {lib}", f"wav2lip_uhq requirement: {lib}") File "H:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 138, in run_pip return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live) File "H:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install wav2lip_uhq requirement: insightface==0.7.3. Command: "H:\A1111\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 h:\a1111\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 Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata (15 kB) Requirement already satisfied: tqdm in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.66.1) Requirement already satisfied: requests in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.31.0) Requirement already satisfied: matplotlib in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.2) Requirement already satisfied: Pillow in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.5.0) Requirement already satisfied: scipy in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.11.1) Requirement already satisfied: scikit-learn in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.3.0) Requirement already satisfied: scikit-image in h:\a1111\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 Collecting cython (from insightface==0.7.3) Obtaining dependency information for cython from https://files.pythonhosted.org/packages/db/3e/8cf60af86446b129e79adee5d9131ec7eb043297e20c04bc31670331325c/Cython-3.0.2-cp310-cp310-win_amd64.whl.metadata Using cached Cython-3.0.2-cp310-cp310-win_amd64.whl.metadata (3.2 kB) 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 Using cached 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/4d/81/316b6a55a0d1f327d04cc7b0ba9d04058cb62de6c3a4d4b0df280cbe3b0b/prettytable-3.9.0-py3-none-any.whl.metadata Using cached prettytable-3.9.0-py3-none-any.whl.metadata (26 kB) Requirement already satisfied: PyYAML in h:\a1111\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) Collecting opencv-python-headless>=4.1.1 (from albumentations->insightface==0.7.3) Obtaining dependency information for opencv-python-headless>=4.1.1 from https://files.pythonhosted.org/packages/70/78/7a13730745684584db53e8aa3c3bd84beef2dcb32bebf627bda0d6df461e/opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl.metadata Using cached opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl.metadata (20 kB) Requirement already satisfied: networkx>=2.8 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1) Requirement already satisfied: imageio>=2.27 in h:\a1111\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 h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=21 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: lazy_loader>=0.2 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3) Requirement already satisfied: contourpy>=1.0.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0) Requirement already satisfied: cycler>=0.10 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.42.0) Requirement already satisfied: kiwisolver>=1.0.1 in h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in h:\a1111\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 Using cached protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata (540 bytes) Requirement already satisfied: typing-extensions>=3.6.2.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.7.1) Requirement already satisfied: wcwidth in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: charset-normalizer<4,>=2 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.2.0) Requirement already satisfied: idna<4,>=2.5 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.16) Requirement already satisfied: certifi>=2017.4.17 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2023.7.22) Requirement already satisfied: joblib>=1.1.1 in h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.2.0) Requirement already satisfied: colorama in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in h:\a1111\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 Cython-3.0.2-cp310-cp310-win_amd64.whl (2.8 MB) Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl (13.3 MB) Using cached prettytable-3.9.0-py3-none-any.whl (27 kB) Using cached opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl (38.0 MB) 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: 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\bredb\AppData\Local\Temp\pip-build-env-64q_gurx\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _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\bredb\AppData\Local\Temp\pip-build-env-64q_gurx\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _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\bredb\AppData\Local\Temp\pip-build-env-64q_gurx\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _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.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 creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\insightface creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\bredb\AppData\Local\Temp\pip-build-env-64q_gurx\overlay\Lib\site-packages\numpy\core\include -IH:\A1111\stable-diffusion-webui\venv\include -IC:\Users\bredb\AppData\Local\Programs\Python\Python310\include -IC:\Users\bredb\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj mesh_core.cpp C:\Users\bredb\AppData\Local\Temp\pip-install-qqf_odb4\insightface_6a9dc41245ed486d905f08ff448361f1\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 (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\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 *** ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects


Launching Web UI with arguments: --xformers --autolaunch *** Error loading script: ui.py Traceback (most recent call last): File "H:\A1111\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "H:\A1111\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 "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\ui.py", line 8, in from scripts.faceswap.swap import FaceSwap File "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\faceswap\swap.py", line 6, in import insightface ModuleNotFoundError: No module named 'insightface'


*** Error loading script: wav2lip_uhq.py Traceback (most recent call last): File "H:\A1111\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "H:\A1111\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 "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\wav2lip_uhq.py", line 11, in init_wav2lip_uhq() File "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\wav2lip_uhq.py", line 7, in init_wav2lip_uhq from ui import on_ui_tabs File "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\ui.py", line 8, in from scripts.faceswap.swap import FaceSwap File "H:\A1111\stable-diffusion-webui\extensions\sd-wav2lip-uhq\scripts\faceswap\swap.py", line 6, in import insightface ModuleNotFoundError: No module named 'insightface'

numz commented 1 year ago

@holycowdude wow 😅 Strange errors... can you try to install insightface manually in your A1111 python env? H:\A1111\stable-diffusion-webui\venv\scripts\activate pip install insightface==0.7.3

Let me know

holycowdude commented 1 year ago

@numz Sorry for the delay, I get an error installing insightface using the new command

(venv) H:\A1111\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 h:\a1111\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 Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata (15 kB) Requirement already satisfied: tqdm in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (4.66.1) Requirement already satisfied: requests in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (2.31.0) Requirement already satisfied: matplotlib in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (3.7.2) Requirement already satisfied: Pillow in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (9.5.0) Requirement already satisfied: scipy in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.11.1) Requirement already satisfied: scikit-learn in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from insightface==0.7.3) (1.3.0) Requirement already satisfied: scikit-image in h:\a1111\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 Collecting cython (from insightface==0.7.3) Obtaining dependency information for cython from https://files.pythonhosted.org/packages/db/3e/8cf60af86446b129e79adee5d9131ec7eb043297e20c04bc31670331325c/Cython-3.0.2-cp310-cp310-win_amd64.whl.metadata Using cached Cython-3.0.2-cp310-cp310-win_amd64.whl.metadata (3.2 kB) 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 Using cached 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/4d/81/316b6a55a0d1f327d04cc7b0ba9d04058cb62de6c3a4d4b0df280cbe3b0b/prettytable-3.9.0-py3-none-any.whl.metadata Using cached prettytable-3.9.0-py3-none-any.whl.metadata (26 kB) Requirement already satisfied: PyYAML in h:\a1111\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) Collecting opencv-python-headless>=4.1.1 (from albumentations->insightface==0.7.3) Obtaining dependency information for opencv-python-headless>=4.1.1 from https://files.pythonhosted.org/packages/70/78/7a13730745684584db53e8aa3c3bd84beef2dcb32bebf627bda0d6df461e/opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl.metadata Using cached opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl.metadata (20 kB) Requirement already satisfied: networkx>=2.8 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1) Requirement already satisfied: imageio>=2.27 in h:\a1111\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 h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=21 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: lazy_loader>=0.2 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3) Requirement already satisfied: contourpy>=1.0.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0) Requirement already satisfied: cycler>=0.10 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.42.0) Requirement already satisfied: kiwisolver>=1.0.1 in h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in h:\a1111\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 Using cached protobuf-4.24.3-cp310-abi3-win_amd64.whl.metadata (540 bytes) Requirement already satisfied: typing-extensions>=3.6.2.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from onnx->insightface==0.7.3) (4.7.1) Requirement already satisfied: wcwidth in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: charset-normalizer<4,>=2 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.2.0) Requirement already satisfied: idna<4,>=2.5 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (1.26.16) Requirement already satisfied: certifi>=2017.4.17 in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from requests->insightface==0.7.3) (2023.7.22) Requirement already satisfied: joblib>=1.1.1 in h:\a1111\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 h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.2.0) Requirement already satisfied: colorama in h:\a1111\stable-diffusion-webui\venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in h:\a1111\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 Cython-3.0.2-cp310-cp310-win_amd64.whl (2.8 MB) Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl (13.3 MB) Using cached prettytable-3.9.0-py3-none-any.whl (27 kB) Using cached opencv_python_headless-4.8.0.76-cp37-abi3-win_amd64.whl (38.0 MB) 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) ... 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' build_py.py:204: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the packages configuration. !!

  !!
    check.warn(importable)

build_py.py:204: _Warning: Package 'insightface.data.images' is absent from the packages configuration. !!

  !!
    check.warn(importable)

Warning: Package 'insightface.data.objects' is absent from the packages configuration. !!

  !!
    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
  creating build\temp.win-amd64-cpython-310
  creating build\temp.win-amd64-cpython-310\Release
  creating build\temp.win-amd64-cpython-310\Release\insightface
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -
pip-install-

t167i8b3\insightface_6b23141b712a46449e63918f8f528e79\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 (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\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

holycowdude commented 1 year ago

@numz unrelated to the issue above but I discovered this fork of Wav2Lip which appears to have improvements, is this useful for this project? https://github.com/anothermartz/Easy-Wav2Lip/releases/tag/v6

holycowdude commented 1 year ago

This is what worked for me.

Go here.

Scroll down and search for "Visual Studio Build Tools 2022" (see image)

Run the downloaded app and Install "Desktop development with C++". I also installed some individual packages in the "Individual components" tab

image