cubiq / ComfyUI_InstantID

Apache License 2.0
949 stars 51 forks source link

how can I fix this #118

Closed MohammadAboulEla closed 3 months ago

MohammadAboulEla commented 3 months ago

Error occurred when executing InstantIDFaceAnalysis:

Failed downloading url https://github.com/deepinsight/insightface/releases/download/v0.7/antelopev2.zip

File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 203, in load_insight_face model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 27, in init self.model_dir = ensure_available('models', name, root=root) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\utils\storage.py", line 28, in ensure_available return download(sub_dir, name, force=False, root=root) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\utils\storage.py", line 17, in download download_file(model_url, File "D:\programing\Stable Diffusion\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\utils\download.py", line 73, in download_file raise RuntimeError("Failed downloading url %s" % url)

MohammadAboulEla commented 3 months ago

Screenshot (1)

scroobius-pip commented 3 months ago

Manually download the antelopev2 zip from here: https://huggingface.co/MonsterMMORPG/tools/resolve/main/antelopev2.zip, unzip and place the antelopev2 folder in your models/insightface/models folder of your comfyui directory

scroobius-pip commented 3 months ago

https://github.com/deepinsight/insightface/issues/2517