comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
55.34k stars 5.84k forks source link

PulidFluxInsightFaceLoader issue #5459

Open Sc0utGuy opened 4 hours ago

Sc0utGuy commented 4 hours ago

Your question

Having an issue with InsightFaceLoader which is causing it to not work at all. I don't understand this very well so I'm hoping maybe someone can make better sense of this than me, but I've tried everything from reinstalling InsightFace itself in ComfyUI to completely reinstalling ComfyUI and everything in it for the workflow. The issue persists. If more information is needed please ask and I'll provide it.

Logs

# ComfyUI Error Report
## Error Details
- **Node Type:** PulidFluxInsightFaceLoader
- **Exception Type:** AssertionError
- **Exception Message:** 
## Stack Trace

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

Logs

2024-11-01 12:06:58,276 - root - INFO - Total VRAM 8192 MB, total RAM 16226 MB
2024-11-01 12:06:58,276 - root - INFO - pytorch version: 2.4.1+cu124
2024-11-01 12:06:58,277 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-01 12:06:58,277 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
2024-11-01 12:06:58,947 - root - INFO - Using pytorch cross attention
2024-11-01 12:06:59,895 - root - INFO - [Prompt Server] web root: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\web
2024-11-01 12:07:00,740 - root - INFO - Total VRAM 8192 MB, total RAM 16226 MB
2024-11-01 12:07:00,740 - root - INFO - pytorch version: 2.4.1+cu124
2024-11-01 12:07:00,741 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-01 12:07:00,741 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
2024-11-01 12:07:03,044 - root - INFO - 
Import times for custom nodes:
2024-11-01 12:07:03,044 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-11-01 12:07:03,044 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
2024-11-01 12:07:03,044 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-11-01 12:07:03,045 - root - INFO -    0.0 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
2024-11-01 12:07:03,045 - root - INFO -    0.1 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-11-01 12:07:03,045 - root - INFO -    0.1 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\PuLID_ComfyUI
2024-11-01 12:07:03,046 - root - INFO -    0.3 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2024-11-01 12:07:03,046 - root - INFO -    0.4 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait
2024-11-01 12:07:03,046 - root - INFO -    0.8 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced
2024-11-01 12:07:03,046 - root - INFO -    1.1 seconds: C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-11-01 12:07:03,046 - root - INFO - 
2024-11-01 12:07:03,053 - root - INFO - Starting server

2024-11-01 12:07:03,053 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-11-01 12:07:22,727 - root - INFO - got prompt
2024-11-01 12:07:22,731 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:07:22,731 - root - ERROR - * VAELoader 615:
2024-11-01 12:07:22,731 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:07:22,731 - root - ERROR - * LoadImage 626:
2024-11-01 12:07:22,732 - root - ERROR -   - Custom validation failed for node: image - Invalid image file: amber-no-freckles-smaller-lips.webp
2024-11-01 12:07:22,732 - root - ERROR - * UNETLoader 762:
2024-11-01 12:07:22,732 - root - ERROR -   - Value not in list: unet_name: 'FLUX1\flux1-dev-fp8.safetensors' not in ['flux1-dev-fp8.safetensors']
2024-11-01 12:07:22,732 - root - ERROR - * ControlNetLoader 647:
2024-11-01 12:07:22,732 - root - ERROR -   - Value not in list: control_net_name: 'FLUX.1\InstantX-FLUX1-Dev-Union\diffusion_pytorch_model.safetensors' not in ['diffusion_pytorch_model.safetensors']
2024-11-01 12:07:22,732 - root - ERROR - * DualCLIPLoader 761:
2024-11-01 12:07:22,732 - root - ERROR -   - Value not in list: clip_name1: 't5\google_t5-v1_1-xxl_encoderonly-fp8_e4m3fn.safetensors' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:07:22,732 - root - ERROR -   - Value not in list: clip_name2: 'long_clip\ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:07:22,732 - root - ERROR - Output will be ignored
2024-11-01 12:07:22,737 - root - WARNING - WARNING: [Errno 2] No such file or directory: 'C:\\ComfyUI\\ComfyUI_windows_portable_nvidia (1)\\ComfyUI_windows_portable\\ComfyUI\\input\\amber-no-freckles-smaller-lips.webp'
2024-11-01 12:07:24,657 - root - INFO - Loading PuLID-Flux model.
2024-11-01 12:07:30,852 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:07:30,853 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:07:30,856 - root - INFO - Prompt executed in 8.12 seconds
2024-11-01 12:07:38,327 - root - INFO - got prompt
2024-11-01 12:07:38,332 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:07:38,333 - root - ERROR - * VAELoader 615:
2024-11-01 12:07:38,333 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:07:38,333 - root - ERROR - * LoadImage 626:
2024-11-01 12:07:38,333 - root - ERROR -   - Custom validation failed for node: image - Invalid image file: amber-no-freckles-smaller-lips.webp
2024-11-01 12:07:38,333 - root - ERROR - Output will be ignored
2024-11-01 12:07:38,339 - root - WARNING - WARNING: [Errno 2] No such file or directory: 'C:\\ComfyUI\\ComfyUI_windows_portable_nvidia (1)\\ComfyUI_windows_portable\\ComfyUI\\input\\amber-no-freckles-smaller-lips.webp'
2024-11-01 12:07:38,348 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:07:38,348 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:07:38,350 - root - INFO - Prompt executed in 0.01 seconds
2024-11-01 12:07:43,177 - root - INFO - got prompt
2024-11-01 12:07:43,181 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:07:43,182 - root - ERROR - * VAELoader 615:
2024-11-01 12:07:43,182 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:07:43,182 - root - ERROR - Output will be ignored
2024-11-01 12:07:43,203 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:07:43,205 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:07:43,205 - root - INFO - Prompt executed in 0.02 seconds
2024-11-01 12:07:47,059 - root - INFO - got prompt
2024-11-01 12:07:47,110 - root - INFO - Using pytorch attention in VAE
2024-11-01 12:07:47,112 - root - INFO - Using pytorch attention in VAE
2024-11-01 12:07:48,350 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:07:48,352 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:07:48,353 - root - INFO - Prompt executed in 1.28 seconds
2024-11-01 12:08:10,260 - root - INFO - got prompt
2024-11-01 12:08:10,264 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:08:10,265 - root - ERROR - * VAELoader 615:
2024-11-01 12:08:10,265 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:08:10,265 - root - ERROR - * LoadImage 626:
2024-11-01 12:08:10,265 - root - ERROR -   - Custom validation failed for node: image - Invalid image file: amber-no-freckles-smaller-lips.webp
2024-11-01 12:08:10,265 - root - ERROR - * UnetLoaderGGUF 763:
2024-11-01 12:08:10,265 - root - ERROR -   - Value not in list: unet_name: 'flux1-dev-Q4_0.gguf' not in []
2024-11-01 12:08:10,265 - root - ERROR - * DualCLIPLoaderGGUF 764:
2024-11-01 12:08:10,265 - root - ERROR -   - Value not in list: clip_name1: 't5\t5-v1_1-xxl-encoder-Q5_K_M.gguf' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:08:10,265 - root - ERROR - * LoraLoader 724:
2024-11-01 12:08:10,265 - root - ERROR -   - Value not in list: lora_name: 'flux\diffusion_pytorch_model.safetensors' not in []
2024-11-01 12:08:10,265 - root - ERROR - * ControlNetLoader 647:
2024-11-01 12:08:10,265 - root - ERROR -   - Value not in list: control_net_name: 'FLUX.1\InstantX-FLUX1-Dev-Union\diffusion_pytorch_model.safetensors' not in ['diffusion_pytorch_model.safetensors']
2024-11-01 12:08:10,265 - root - ERROR - Output will be ignored
2024-11-01 12:08:10,271 - root - WARNING - WARNING: [Errno 2] No such file or directory: 'C:\\ComfyUI\\ComfyUI_windows_portable_nvidia (1)\\ComfyUI_windows_portable\\ComfyUI\\input\\amber-no-freckles-smaller-lips.webp'
2024-11-01 12:08:10,289 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:08:10,289 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:08:10,290 - root - INFO - Prompt executed in 0.02 seconds
2024-11-01 12:08:16,291 - root - INFO - got prompt
2024-11-01 12:08:16,297 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:08:16,297 - root - ERROR - * VAELoader 615:
2024-11-01 12:08:16,297 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:08:16,297 - root - ERROR - * UnetLoaderGGUF 763:
2024-11-01 12:08:16,297 - root - ERROR -   - Value not in list: unet_name: 'flux1-dev-Q4_0.gguf' not in []
2024-11-01 12:08:16,297 - root - ERROR - * DualCLIPLoaderGGUF 764:
2024-11-01 12:08:16,297 - root - ERROR -   - Value not in list: clip_name1: 't5\t5-v1_1-xxl-encoder-Q5_K_M.gguf' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:08:16,297 - root - ERROR - * LoraLoader 724:
2024-11-01 12:08:16,297 - root - ERROR -   - Value not in list: lora_name: 'flux\diffusion_pytorch_model.safetensors' not in []
2024-11-01 12:08:16,297 - root - ERROR - * ControlNetLoader 647:
2024-11-01 12:08:16,298 - root - ERROR -   - Value not in list: control_net_name: 'FLUX.1\InstantX-FLUX1-Dev-Union\diffusion_pytorch_model.safetensors' not in ['diffusion_pytorch_model.safetensors']
2024-11-01 12:08:16,298 - root - ERROR - Output will be ignored
2024-11-01 12:08:16,321 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:08:16,321 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:08:16,323 - root - INFO - Prompt executed in 0.02 seconds
2024-11-01 12:10:32,706 - root - INFO - got prompt
2024-11-01 12:10:32,711 - root - ERROR - Failed to validate prompt for output 584:
2024-11-01 12:10:32,711 - root - ERROR - * VAELoader 615:
2024-11-01 12:10:32,711 - root - ERROR -   - Value not in list: vae_name: 'FLUX1\ae.safetensors' not in ['ae.safetensors', 'taesd', 'taesdxl', 'taesd3', 'taef1']
2024-11-01 12:10:32,711 - root - ERROR - * LoadImage 626:
2024-11-01 12:10:32,711 - root - ERROR -   - Custom validation failed for node: image - Invalid image file: amber-no-freckles-smaller-lips.webp
2024-11-01 12:10:32,712 - root - ERROR - * UNETLoader 762:
2024-11-01 12:10:32,712 - root - ERROR -   - Value not in list: unet_name: 'FLUX1\flux1-dev-fp8.safetensors' not in ['flux1-dev-fp8.safetensors']
2024-11-01 12:10:32,712 - root - ERROR - * ControlNetLoader 647:
2024-11-01 12:10:32,712 - root - ERROR -   - Value not in list: control_net_name: 'FLUX.1\InstantX-FLUX1-Dev-Union\diffusion_pytorch_model.safetensors' not in ['diffusion_pytorch_model.safetensors']
2024-11-01 12:10:32,712 - root - ERROR - * DualCLIPLoader 761:
2024-11-01 12:10:32,712 - root - ERROR -   - Value not in list: clip_name1: 't5\google_t5-v1_1-xxl_encoderonly-fp8_e4m3fn.safetensors' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:10:32,712 - root - ERROR -   - Value not in list: clip_name2: 'long_clip\ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors' not in ['clip_l.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-11-01 12:10:32,712 - root - ERROR - Output will be ignored
2024-11-01 12:10:32,718 - root - WARNING - WARNING: [Errno 2] No such file or directory: 'C:\\ComfyUI\\ComfyUI_windows_portable_nvidia (1)\\ComfyUI_windows_portable\\ComfyUI\\input\\amber-no-freckles-smaller-lips.webp'
2024-11-01 12:10:32,727 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:10:32,728 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:10:32,729 - root - INFO - Prompt executed in 0.01 seconds
2024-11-01 12:11:05,066 - root - INFO - got prompt
2024-11-01 12:11:05,331 - root - INFO - Using pytorch attention in VAE
2024-11-01 12:11:05,332 - root - INFO - Using pytorch attention in VAE
2024-11-01 12:11:06,848 - root - ERROR - !!! Exception during processing !!! 
2024-11-01 12:11:06,848 - root - ERROR - Traceback (most recent call last):
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 223, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

2024-11-01 12:11:06,849 - root - INFO - Prompt executed in 1.77 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)



### Other

_No response_
daetalos commented 4 hours ago

Exact same issue - am following this guide - https://docs.google.com/document/d/1Hjf1LwpEy2KVmKb0TU4cjkzIofdi6tCP7qI7Sr6NtZs/edit?tab=t.0

Sc0utGuy commented 4 hours ago

Exact same issue - am following this guide - https://docs.google.com/document/d/1Hjf1LwpEy2KVmKb0TU4cjkzIofdi6tCP7qI7Sr6NtZs/edit?tab=t.0

Yep... same exact thing lol

miguelgargallo commented 4 hours ago

me too

Sc0utGuy commented 3 hours ago

Exact same issue - am following this guide - https://docs.google.com/document/d/1Hjf1LwpEy2KVmKb0TU4cjkzIofdi6tCP7qI7Sr6NtZs/edit?tab=t.0

me too

I managed to get it working by downloading the models directly from the model manager instead of from the links like he does in the video. Not sure what doing it from comfyui directly fixes, but I would try that if you're still having trouble

MithosRiot commented 1 hour ago

Exact same issue - am following this guide - https://docs.google.com/document/d/1Hjf1LwpEy2KVmKb0TU4cjkzIofdi6tCP7qI7Sr6NtZs/edit?tab=t.0

me too

I managed to get it working by downloading the models directly from the model manager instead of from the links like he does in the video. Not sure what doing it from comfyui directly fixes, but I would try that if you're still having trouble

i dont see the model in the model manager.

Vlad1000-sys commented 55 minutes ago

The same problem

maximinus commented 41 minutes ago

The issue is from face_analysis.py, because the "insightface" folder does not contain a valid layout for the model. If you look inside ComfyUI/models/insightface, there should be a "antelopev2" folder. THAT folder should contain 5 onnx files; if it contains another "antelopev2" folder, then you will find the files in there. Place them in their parent folder and that fixes the issue for me.

tl;dr: If you have onnx files in "ComfyUI/models/insightface/antelopev2/antelopev2", they should instead be in "ComfyUI/models/insightface/antelopev2"

daetalos commented 26 minutes ago

Thank you @maximinus that did the trick