Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PulidFluxInsightFaceLoader #19

Open
ABDON77 opened this issue Jan 26, 2025 · 4 comments
Open

PulidFluxInsightFaceLoader #19

ABDON77 opened this issue Jan 26, 2025 · 4 comments

Comments

@ABDON77
Copy link

ABDON77 commented Jan 26, 2025

ComfyUI Error Report

Error Details

  • Node ID: 124
  • Node Type: PulidFluxInsightFaceLoader
  • Exception Type: AssertionError
  • Exception Message:

Stack Trace

  File "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 327, 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 "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 202, 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 "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\comfyui_pulid_flux_ll\pulidflux.py", line 132, in load_insightface
    model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l

  File "G:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\venv\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models

@lldacing
Copy link
Owner

@ABDON77 Please update the code, I made an optimization to solve the problem that the automatic download path is incorrect

@merecesarchviz
Copy link

I install it today but i got error from the same node!!

ComfyUI Error Report

Error Details

  • Node ID: 337
  • Node Type: PulidFluxInsightFaceLoader
  • Exception Type: AssertionError
  • Exception Message:

Stack Trace

  File "F:\Ai\ComfyUI\execution.py", line 327, 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 "F:\Ai\ComfyUI\execution.py", line 202, 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 "F:\Ai\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "F:\Ai\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "F:\Ai\ComfyUI\custom_nodes\ComfyUI_PuLID_Flux_ll\pulidflux.py", line 176, in load_insightface
    model = FaceAnalysis(name=name, root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider', ]) # alternative to buffalo_l

  File "F:\Ai\ComfyUI\venv\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models

System Information

  • ComfyUI Version: 0.3.12
  • Arguments: main.py
  • OS: nt
  • Python Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
  • Embedded Python: false
  • PyTorch Version: 2.5.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25756565504
    • VRAM Free: 24077402112
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

@merecesarchviz
Copy link

@ABDON77 Please update the code, I made an optimization to solve the problem that the automatic download path is incorrect

any solution?

@lldacing
Copy link
Owner

I install it today but i got error from the same node!!

ComfyUI Error Report

Error Details

  • Node ID: 337
  • Node Type: PulidFluxInsightFaceLoader
  • Exception Type: AssertionError
  • Exception Message:

Stack Trace

  File "F:\Ai\ComfyUI\execution.py", line 327, 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 "F:\Ai\ComfyUI\execution.py", line 202, 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 "F:\Ai\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "F:\Ai\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "F:\Ai\ComfyUI\custom_nodes\ComfyUI_PuLID_Flux_ll\pulidflux.py", line 176, in load_insightface
    model = FaceAnalysis(name=name, root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider', ]) # alternative to buffalo_l

  File "F:\Ai\ComfyUI\venv\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models

System Information

  • ComfyUI Version: 0.3.12
  • Arguments: main.py
  • OS: nt
  • Python Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
  • Embedded Python: false
  • PyTorch Version: 2.5.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25756565504
    • VRAM Free: 24077402112
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

If you don't first install, please see #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants