SeargeDP / SeargeSDXL

Custom nodes and workflows for SDXL in ComfyUI
https://civitai.com/models/111463
MIT License
800 stars 62 forks source link

Error while deserializing header: MetadataIncompleteBuffer #147

Open GoodCharles opened 6 months ago

GoodCharles commented 6 months ago
Error occurred when executing SeargeMagicBox:

Error while deserializing header: MetadataIncompleteBuffer

  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\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 "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 269, in process
    (data, stage_result) = self.run_stage(stage, data, stage_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 248, in run_stage
    (data, stage_result) = stage_processor.process(data, stage_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\custom_nodes\SeargeSDXL\modules\stage_load_checkpoints.py", line 274, in process
    clip_vision_model = NodeWrapper.clipvision_loader.load_clip(clipvision_name)[0]
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\nodes.py", line 865, in load_clip
    clip_vision = comfy.clip_vision.load(clip_path)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\comfy\clip_vision.py", line 113, in load
    sd = load_torch_file(ckpt_path)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\ComfyUI\comfy\utils.py", line 14, in load_torch_file
    sd = safetensors.torch.load_file(ckpt, device=device.type)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Cyberpunk\A.I\ComfyUI\python_embeded\Lib\site-packages\safetensors\torch.py", line 308, in load_file
    with safe_open(filename, framework="pt", device=device) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
zhangzhongyuan1996 commented 6 months ago

how to deal this problem?

atom-fox commented 5 months ago

+1