balazik / ComfyUI-PuLID-Flux

PuLID-Flux ComfyUI implementation
Apache License 2.0
378 stars 27 forks source link

PulidFluxInsightFaceLoader FaceAnalysis.__init__() got an unexpected keyword argument 'providers' .help me!! #26

Open xiewci opened 1 month ago

xiewci commented 1 month ago

got prompt !!! Exception during processing !!! FaceAnalysis.init() got an unexpected keyword argument 'providers' Traceback (most recent call last): File "/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 "/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 "/comfyui/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/comfyui/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "/comfyui/custom_nodes/ComfyUI-PuLID-Flux/pulidflux.py", line 196, in load_insightface model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l TypeError: FaceAnalysis.init() got an unexpected keyword argument 'providers' image

balazik commented 1 month ago

Hi, @xiewci Maybe your insightface package is too old, see here: https://github.com/nosiu/comfyui-instantId-faceswap/issues/6 I use: insightface==0.7.3 (my env is Python 3.11)

Let me know if updating helped (and please mention the current version that you have now, to help other users that encounter the same issue)