unexpected EOF, expected 822353 more bytes. The file might be corrupted

某个工作流在运行到“Apply PuLID Flux“节点的时候出错,该节点所属的插件为GitHub - sipie800/ComfyUI-PuLID-Flux-Enhanced,具体的报错日志如下所示:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ComfyUI Error Report
## Error Details
- **Node ID:** 63
- **Node Type:** ApplyPulidFlux
- **Exception Type:** RuntimeError
- **Exception Message:** unexpected EOF, expected 822353 more bytes. The file might be corrupted.
## Stack Trace
File "D:\software\ComfyUI-aki-v1.5\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 "D:\software\ComfyUI-aki-v1.5\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 "D:\software\ComfyUI-aki-v1.5\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "D:\software\ComfyUI-aki-v1.5\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "D:\software\ComfyUI-aki-v1.5\custom_nodes\ComfyUI_PuLID_Flux_ll\pulidflux.py", line 210, in apply_pulid_flux
    face_helper = FaceRestoreHelper(

  File "D:\software\ComfyUI-aki-v1.5\python\lib\site-packages\facexlib\utils\face_restoration_helper.py", line 99, in __init__
    self.face_det = init_detection_model(det_model, half=False, device=self.device, model_rootpath=model_rootpath)

  File "D:\software\ComfyUI-aki-v1.5\python\lib\site-packages\facexlib\detection\__init__.py", line 22, in init_detection_model
    load_net = torch.load(model_path, map_location=lambda storage, loc: storage)

  File "D:\software\ComfyUI-aki-v1.5\python\lib\site-packages\torch\serialization.py", line 1384, in load
    return _legacy_load(

  File "D:\software\ComfyUI-aki-v1.5\python\lib\site-packages\torch\serialization.py", line 1647, in _legacy_load
    typed_storage._untyped_storage._set_from_file(

出错的原因是 facexlib 模型的权重没有下载完就使用了,把其权重文件删了之后重新运行工作流,让它重新生成即可。这些权重文件所在的文件夹为:D:\software\ComfyUI-aki-v1.5\python\Lib\site-packages\facexlib\weights

参考资料:

Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 14, 2025 20:58 +0800
使用 Hugo 构建
主题 StackJimmy 设计