Gourieff / comfyui-reactor-node

Fast and Simple Face Swap Extension Node for ComfyUI
GNU General Public License v3.0
1.09k stars 116 forks source link

How to fix it #349

Open godischense opened 3 days ago

godischense commented 3 days ago

First, confirm

What happened?

Unable to run

Steps to reproduce the problem

Your workflow

Sysinfo

comfyui

Relevant console log

File "D:\ComfyUI_Mie_V2.0\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI_Mie_V2.0\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:\ComfyUI_Mie_V2.0\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI_Mie_V2.0\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 112, in execute
facerestore_model = model_loading.load_state_dict(sd).eval()
File "D:\ComfyUI_Mie_V2.0\ComfyUI\comfy_extras\chainner_models\model_loading.py", line 5, in load_state_dict
return ModelLoader().load_from_state_dict(state_dict).eval()
File "D:\ComfyUI_Mie_V2.0\python_embeded\Lib\site-packages\spandrel\__helpers\loader.py", line 94, in load_from_state_dict
return self.registry.load(state_dict).to(self.device)
File "D:\ComfyUI_Mie_V2.0\python_embeded\Lib\site-packages\spandrel\__helpers\registry.py", line 184, in load
raise UnsupportedModelError

Additional information

No response

Gourieff commented 2 days ago

File "D:\ComfyUI_Mie_V2.0\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 112, in execute facerestore_model = model_loading.load_state_dict(sd).eval() ... raise UnsupportedModelError

It seems that one of the restoration models you use is corrupted, try to download it again from this asset https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models