SeargeSDXL icon indicating copy to clipboard operation
SeargeSDXL copied to clipboard

Error when executing Magic Box

Open dwatz10 opened this issue 2 years ago • 1 comments

When I first run I get this error:

Error occurred when executing SeargeMagicBox:

Error while deserializing header: MetadataIncompleteBuffer

File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 269, in process (data, stage_result) = self.run_stage(stage, data, stage_input) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 248, in run_stage (data, stage_result) = stage_processor.process(data, stage_input) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\stage_load_checkpoints.py", line 122, in process base_checkpoint = NodeWrapper.checkpoint_loader.load_checkpoint(base_name) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\nodes.py", line 476, in load_checkpoint out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 416, in load_checkpoint_guess_config sd = comfy.utils.load_torch_file(ckpt_path) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 13, in load_torch_file sd = safetensors.torch.load_file(ckpt, device=device.type) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\python_embeded\lib\site-packages\safetensors\torch.py", line 308, in load_file with safe_open(filename, framework="pt", device=device) as f:

if I run again I get this error:

Error occurred when executing SeargeMagicBox:

'NoneType' object is not subscriptable

File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 269, in process (data, stage_result) = self.run_stage(stage, data, stage_input) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\magic_box.py", line 248, in run_stage (data, stage_result) = stage_processor.process(data, stage_input) File "C:\Users\dwatz\OneDrive\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\stage_load_checkpoints.py", line 128, in process base_model = base_checkpoint[0]

I have tried updating and looking at other fixes but I can't find the problem any help would be appreciated.

dwatz10 avatar Nov 15 '23 03:11 dwatz10

Did you install the required models according to the readme or by using the install script?

SeargeDP avatar Nov 22 '23 17:11 SeargeDP