logtd / ComfyUI-InstanceDiffusion

Apache License 2.0
162 stars 10 forks source link

Error occurred when executing DownloadInstanceDiffusionModels: invalid load key, '`'. #16

Open Licia-123 opened 1 week ago

Licia-123 commented 1 week ago

Error occurred when executing DownloadInstanceDiffusionModels:

invalid load key, '`'.

File "/workspace/ComfyUI/execution.py", line 316, 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 "/workspace/ComfyUI/execution.py", line 191, 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 "/workspace/ComfyUI/execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "/workspace/ComfyUI/execution.py", line 157, in process_inputs results.append(getattr(obj, func)(*inputs)) File "/workspace/ComfyUI/custom_nodes/ComfyUI-InstanceDiffusion/nodes/download_and_load_models.py", line 62, in load_model fusers_checkpoint = comfy.utils.load_torch_file(fusers_file, safe_load=True) File "/workspace/ComfyUI/comfy/utils.py", line 43, in load_torch_file pl_sd = torch.load(ckpt, map_location=device, pickle_module=comfy.checkpoint_pickle) File "/workspace/environments/python/comfyui/lib/python3.10/site-packages/ultralytics/utils/patches.py", line 86, in torch_load return _torch_load(args, kwargs) File "/workspace/environments/python/comfyui/lib/python3.10/site-packages/torch/serialization.py", line 1040, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/workspace/environments/python/comfyui/lib/python3.10/site-packages/torch/serialization.py", line 1262, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args)

Licia-123 commented 1 week ago

This problem has been bothering me for a long time and cannot be solved. Spline_Editor_InstanceDiffusion_kijai_01.workflollow also reported this error.

logtd commented 1 week ago

Hi, thanks for reporting.

Could you go into your ComfyUI/models/instance_diffusion directory and delete the checkpoint files in there? It's possible that they downloaded incorrectly and a corrupted file is in there.

If that doesn't work and you're trying to use the nodes in the meantime you can download them from the ComfyUI manager models section by searching for Instance Diffusion.