Comfy-Org / Comfy-Org/ComfyUI

求助 SAM模型加载器 PytorchStreamReader failed reading zip archive: failed finding central directory

Open
#10,894 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Image

### Actual Behavior

Image

### Steps to Reproduce

Image

### Debug Logs

```powershell
# ComfyUI Error Report
## Error Details
- **Node ID:** 63
- **Node Type:** SAMModelLoader (segment anything)
- **Exception Type:** RuntimeError
- **Exception Message:** PytorchStreamReader failed reading zip archive: failed finding central directory

## Stack Trace

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 510, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 324, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 298, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 286, in process_inputs
result = f(**inputs)
^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 269, in main
sam_model = load_sam_model(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 86, in load_sam_model
sam = sam_model_registry[model_type](checkpoint=sam_checkpoint_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 38, in build_sam_vit_b
return _build_sam(
^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 105, in _build_sam
state_dict = torch.load(f)
^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\ComfyUI-Impact-Subpack\modules\subcore.py", line 216, in torch_wrapper
return orig_torch_load(*args, **load_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 1486, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 771, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

## System Information
- **ComfyUI Version:** 0.3.70
- **Arguments:** D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\main.py --auto-launch --preview-method none --disable-cuda-malloc --fast
- **OS:** nt
- **Python Version:** 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.7.0+cu128
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4070 Ti SUPER : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 17170825216
- **VRAM Free:** 15821963264
- **Torch VRAM Total:** 0
- **Torch VRAM Free:** 0

## Logs

2025-11-26T08:33:24.061346 -
2025-11-26T08:33:24.168078 - Context impl SQLiteImpl.
2025-11-26T08:33:24.169075 - Will assume non-transactional DDL.
2025-11-26T08:33:24.187618 - No target revision found.
2025-11-26T08:33:24.259984 - Starting server

2025-11-26T08:33:24.260984 - To see the GUI go to: http://127.0.0.1:8188
2025-11-26T08:33:25.008431 - Use Proxy:2025-11-26T08:33:25.008431 - 2025-11-26T08:33:25.008431 - http://127.0.0.1:78902025-11-26T08:33:25.008431 -
2025-11-26T08:33:25.971950 - Use Proxy:2025-11-26T08:33:25.971950 - 2025-11-26T08:33:25.971950 - http://127.0.0.1:78902025-11-26T08:33:25.971950 -
2025-11-26T08:33:26.435195 - FETCH ComfyRegistry Data: 65/1082025-11-26T08:33:26.435195 -
2025-11-26T08:33:26.935350 - Use Proxy:2025-11-26T08:33:26.935350 - 2025-11-26T08:33:26.935350 - http://127.0.0.1:78902025-11-26T08:33:26.935350 -
2025-11-26T08:33:27.694774 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:27.699760 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:27.701757 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/clipspace.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:27.702753 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:27.703750 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe-lightbox.esm.min.js2025-11-26T08:33:27.703750 -
2025-11-26T08:33:27.787173 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/widgetInputs.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:27.806423 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe.min.css2025-11-26T08:33:27.806423 -
2025-11-26T08:33:27.840320 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/pickr.min.js2025-11-26T08:33:27.841317 -
2025-11-26T08:33:27.889500 - Use Proxy:2025-11-26T08:33:27.889500 - 2025-11-26T08:33:27.889500 - http://127.0.0.1:78902025-11-26T08:33:27.889500 -
2025-11-26T08:33:27.898027 - Use Proxy:2025-11-26T08:33:27.898027 - 2025-11-26T08:33:27.898027 - http://127.0.0.1:78902025-11-26T08:33:27.898027 -
2025-11-26T08:33:27.902128 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/classic.min.css2025-11-26T08:33:27.902128 -
2025-11-26T08:33:28.878869 - Use Proxy:2025-11-26T08:33:28.878869 - 2025-11-26T08:33:28.878869 - http://127.0.0.1:78902025-11-26T08:33:28.878869 -
2025-11-26T08:33:29.830199 - Use Proxy:2025-11-26T08:33:29.830199 - 2025-11-26T08:33:29.830199 - http://127.0.0.1:78902025-11-26T08:33:29.830199 -
2025-11-26T08:33:30.540884 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.css2025-11-26T08:33:30.540884 -
2025-11-26T08:33:30.546877 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.min.js2025-11-26T08:33:30.546877 -
2025-11-26T08:33:30.557840 - D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/model-viewer.min.js2025-11-26T08:33:30.557840 -
2025-11-26T08:33:30.800108 - Use Proxy:2025-11-26T08:33:30.800108 - 2025-11-26T08:33:30.800108 - http://127.0.0.1:78902025-11-26T08:33:30.800108 -
2025-11-26T08:33:31.702261 - FETCH ComfyRegistry Data: 70/1082025-11-26T08:33:31.702261 -
2025-11-26T08:33:32.203652 - Use Proxy:2025-11-26T08:33:32.203652 - 2025-11-26T08:33:32.203652 - http://127.0.0.1:78902025-11-26T08:33:32.203652 -
2025-11-26T08:33:32.559604 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2025-11-26T08:33:34.023642 - Use Proxy:2025-11-26T08:33:34.023642 - 2025-11-26T08:33:34.023642 - http://127.0.0.1:78902025-11-26T08:33:34.023642 -
2025-11-26T08:33:35.007286 - Use Proxy:2025-11-26T08:33:35.008299 - 2025-11-26T08:33:35.008299 - http://127.0.0.1:78902025-11-26T08:33:35.008299 -
2025-11-26T08:33:35.993529 - Use Proxy:2025-11-26T08:33:35.993529 - 2025-11-26T08:33:35.993529 - http://127.0.0.1:78902025-11-26T08:33:35.993529 -
2025-11-26T08:33:36.971600 - Use Proxy:2025-11-26T08:33:36.971600 - 2025-11-26T08:33:36.971600 - http://127.0.0.1:78902025-11-26T08:33:36.971600 -
2025-11-26T08:33:37.465171 - FETCH ComfyRegistry Data: 75/1082025-11-26T08:33:37.465171 -
2025-11-26T08:33:37.966585 - Use Proxy:2025-11-26T08:33:37.966585 - 2025-11-26T08:33:37.967565 - http://127.0.0.1:78902025-11-26T08:33:37.967565 -
2025-11-26T08:33:39.284203 - Use Proxy:2025-11-26T08:33:39.285246 - 2025-11-26T08:33:39.285246 - http://127.0.0.1:78902025-11-26T08:33:39.285246 -
2025-11-26T08:33:40.255395 - Use Proxy:2025-11-26T08:33:40.255395 - 2025-11-26T08:33:40.255395 - http://127.0.0.1:78902025-11-26T08:33:40.255395 -
2025-11-26T08:33:41.227516 - Use Proxy:2025-11-26T08:33:41.228529 - 2025-11-26T08:33:41.228529 - http://127.0.0.1:78902025-11-26T08:33:41.228529 -
2025-11-26T08:33:42.198423 - Use Proxy:2025-11-26T08:33:42.198423 - 2025-11-26T08:33:42.198423 - http://127.0.0.1:78902025-11-26T08:33:42.198423 -
2025-11-26T08:33:42.644173 - FETCH ComfyRegistry Data: 80/1082025-11-26T08:33:42.644173 -
2025-11-26T08:33:43.145945 - Use Proxy:2025-11-26T08:33:43.146938 - 2025-11-26T08:33:43.146938 - http://127.0.0.1:78902025-11-26T08:33:43.146938 -
2025-11-26T08:33:44.118942 - Use Proxy:2025-11-26T08:33:44.119997 - 2025-11-26T08:33:44.119997 - http://127.0.0.1:78902025-11-26T08:33:44.119997 -
2025-11-26T08:33:45.072401 - Use Proxy:2025-11-26T08:33:45.073406 - 2025-11-26T08:33:45.073406 - http://127.0.0.1:78902025-11-26T08:33:45.073406 -
2025-11-26T08:33:46.060854 - Use Proxy:2025-11-26T08:33:46.061904 - 2025-11-26T08:33:46.061904 - http://127.0.0.1:78902025-11-26T08:33:46.061904 -
2025-11-26T08:33:47.043114 - Use Proxy:2025-11-26T08:33:47.044154 - 2025-11-26T08:33:47.044154 - http://127.0.0.1:78902025-11-26T08:33:47.044154 -
2025-11-26T08:33:47.483263 - FETCH ComfyRegistry Data: 85/1082025-11-26T08:33:47.483263 -
2025-11-26T08:33:47.983918 - Use Proxy:2025-11-26T08:33:47.983918 - 2025-11-26T08:33:47.983918 - http://127.0.0.1:78902025-11-26T08:33:47.983918 -
2025-11-26T08:33:48.988578 - Use Proxy:2025-11-26T08:33:48.988578 - 2025-11-26T08:33:48.989583 - http://127.0.0.1:78902025-11-26T08:33:48.989583 -
2025-11-26T08:33:49.968290 - Use Proxy:2025-11-26T08:33:49.968290 - 2025-11-26T08:33:49.968290 - http://127.0.0.1:78902025-11-26T08:33:49.968290 -
2025-11-26T08:33:50.917380 - Use Proxy:2025-11-26T08:33:50.917380 - 2025-11-26T08:33:50.917380 - http://127.0.0.1:78902025-11-26T08:33:50.917380 -
2025-11-26T08:33:51.884066 - Use Proxy:2025-11-26T08:33:51.885116 - 2025-11-26T08:33:51.885116 - http://127.0.0.1:78902025-11-26T08:33:51.885116 -
2025-11-26T08:33:52.333049 - FETCH ComfyRegistry Data: 90/1082025-11-26T08:33:52.333049 -
2025-11-26T08:33:52.834107 - Use Proxy:2025-11-26T08:33:52.834107 - 2025-11-26T08:33:52.834107 - http://127.0.0.1:78902025-11-26T08:33:52.834107 -
2025-11-26T08:33:53.803566 - Use Proxy:2025-11-26T08:33:53.803566 - 2025-11-26T08:33:53.804615 - http://127.0.0.1:78902025-11-26T08:33:53.804615 -
2025-11-26T08:33:55.510611 - Use Proxy:2025-11-26T08:33:55.510611 - 2025-11-26T08:33:55.510611 - http://127.0.0.1:78902025-11-26T08:33:55.510611 -
2025-11-26T08:33:57.024117 - Use Proxy:2025-11-26T08:33:57.024117 - 2025-11-26T08:33:57.024117 - http://127.0.0.1:78902025-11-26T08:33:57.024117 -
2025-11-26T08:33:57.999126 - Use Proxy:2025-11-26T08:33:57.999126 - 2025-11-26T08:33:57.999126 - http://127.0.0.1:78902025-11-26T08:33:57.999126 -
2025-11-26T08:33:58.478647 - FETCH ComfyRegistry Data: 95/1082025-11-26T08:33:58.478647 -
2025-11-26T08:33:58.979925 - Use Proxy:2025-11-26T08:33:58.979925 - 2025-11-26T08:33:58.979925 - http://127.0.0.1:78902025-11-26T08:33:58.979925 -
2025-11-26T08:33:59.945169 - Use Proxy:2025-11-26T08:33:59.945169 - 2025-11-26T08:33:59.945169 - http://127.0.0.1:78902025-11-26T08:33:59.945169 -
2025-11-26T08:34:00.914006 - Use Proxy:2025-11-26T08:34:00.915001 - 2025-11-26T08:34:00.915001 - http://127.0.0.1:78902025-11-26T08:34:00.915001 -
2025-11-26T08:34:01.903848 - Use Proxy:2025-11-26T08:34:01.903848 - 2025-11-26T08:34:01.903848 - http://127.0.0.1:78902025-11-26T08:34:01.903848 -
2025-11-26T08:34:02.877600 - Use Proxy:2025-11-26T08:34:02.877600 - 2025-11-26T08:34:02.877600 - http://127.0.0.1:78902025-11-26T08:34:02.877600 -
2025-11-26T08:34:03.333930 - FETCH ComfyRegistry Data: 100/1082025-11-26T08:34:03.333930 -
2025-11-26T08:34:03.834783 - Use Proxy:2025-11-26T08:34:03.835837 - 2025-11-26T08:34:03.835837 - http://127.0.0.1:78902025-11-26T08:34:03.835837 -
2025-11-26T08:34:04.836944 - Use Proxy:2025-11-26T08:34:04.836944 - 2025-11-26T08:34:04.836944 - http://127.0.0.1:78902025-11-26T08:34:04.836944 -
2025-11-26T08:34:05.800184 - Use Proxy:2025-11-26T08:34:05.800184 - 2025-11-26T08:34:05.800184 - http://127.0.0.1:78902025-11-26T08:34:05.800184 -
2025-11-26T08:34:06.748242 - Use Proxy:2025-11-26T08:34:06.748242 - 2025-11-26T08:34:06.748242 - http://127.0.0.1:78902025-11-26T08:34:06.748242 -
2025-11-26T08:34:07.738153 - Use Proxy:2025-11-26T08:34:07.739200 - 2025-11-26T08:34:07.739200 - http://127.0.0.1:78902025-11-26T08:34:07.739200 -
2025-11-26T08:34:08.215441 - FETCH ComfyRegistry Data: 105/1082025-11-26T08:34:08.215441 -
2025-11-26T08:34:08.715988 - Use Proxy:2025-11-26T08:34:08.715988 - 2025-11-26T08:34:08.715988 - http://127.0.0.1:78902025-11-26T08:34:08.715988 -
2025-11-26T08:34:09.662004 - Use Proxy:2025-11-26T08:34:09.662994 - 2025-11-26T08:34:09.662994 - http://127.0.0.1:78902025-11-26T08:34:09.662994 -
2025-11-26T08:34:11.262373 - Use Proxy:2025-11-26T08:34:11.263331 - 2025-11-26T08:34:11.263331 - http://127.0.0.1:78902025-11-26T08:34:11.263331 -
2025-11-26T08:34:12.192566 - FETCH ComfyRegistry Data [DONE]2025-11-26T08:34:12.192566 -
2025-11-26T08:34:12.383645 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-11-26T08:34:12.427500 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-11-26T08:34:12.427500 - 2025-11-26T08:34:12.427500 - Use Proxy:2025-11-26T08:34:12.428501 - 2025-11-26T08:34:12.428501 - http://127.0.0.1:78902025-11-26T08:34:12.428501 -
2025-11-26T08:34:12.801852 - [DONE]2025-11-26T08:34:12.802845 -
2025-11-26T08:34:12.881783 - [ComfyUI-Manager] All startup tasks have been completed.
2025-11-26T08:37:29.523262 - got prompt
2025-11-26T08:37:29.545203 - Failed to validate prompt for output 94:
2025-11-26T08:37:29.545203 - * (prompt):
2025-11-26T08:37:29.545203 - - Value not in list: overwrite_mode: 'true' not in ['false', 'prefix_as_filename']
2025-11-26T08:37:29.545203 - - Failed to convert an input value to a INT value: quality, false, invalid literal for int() with base 10: 'false'
2025-11-26T08:37:29.546200 - * CheckpointLoaderSimple 88:
2025-11-26T08:37:29.546200 - - Value not in list: ckpt_name: 'juggernautXL_v9Rdphoto2Lightning.safetensors' not in ['3Guofeng3_v34.safetensors', 'Shouhui-wwm.safetensors', 'emoxaIllustrious_v10.safetensors', 'helloartOil_helloartOilV10k.safetensors', '油画oilPainting_oilPaintingV10.safetensors', '装饰画floralPatternsMerge_v10.safetensors']
2025-11-26T08:37:29.546200 - * ControlNetLoaderAdvanced 58:
2025-11-26T08:37:29.546200 - - Value not in list: control_net_name: 'control-lora-depth-rank256.safetensors' not in []
2025-11-26T08:37:29.546200 - * LoadImage 86:
2025-11-26T08:37:29.546200 - - Custom validation failed for node: image - Invalid image file: A yellow blob-like cat (4).jpg
2025-11-26T08:37:29.546200 - * CLIPVisionLoader 85:
2025-11-26T08:37:29.546200 - - Value not in list: clip_name: 'CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors' not in []
2025-11-26T08:37:29.546200 - * IPAdapterModelLoader 84:
2025-11-26T08:37:29.546200 - - Value not in list: ipadapter_file: 'ip-adapter-plus_sdxl_vit-h.safetensors' not in []
2025-11-26T08:37:29.546200 - * Image Save 94:
2025-11-26T08:37:29.546200 - - Value not in list: overwrite_mode: 'true' not in ['false', 'prefix_as_filename']
2025-11-26T08:37:29.546200 - - Failed to convert an input value to a INT value: quality, false, invalid literal for int() with base 10: 'false'
2025-11-26T08:37:29.546200 - Output will be ignored
2025-11-26T08:37:29.547198 - Failed to validate prompt for output 64:
2025-11-26T08:37:29.547198 - Output will be ignored
2025-11-26T08:37:29.547198 - Failed to validate prompt for output 53:
2025-11-26T08:37:29.547198 - Output will be ignored
2025-11-26T08:37:29.580117 - WARNING: [Errno 2] No such file or directory: 'D:\\comfyui\\ComfyUI-aki-v1.7\\ComfyUI\\input\\A yellow blob-like cat (4).jpg'
2025-11-26T08:37:33.044247 - Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.52, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.
2025-11-26T08:37:33.058775 - Device set to use cuda:0
2025-11-26T08:37:59.913075 - final text_encoder_type: bert-base-uncased2025-11-26T08:37:59.913075 -
2025-11-26T08:38:21.630540 - using extra model: D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\models\sams\sam_vit_b_01ec64.pth
2025-11-26T08:38:22.348003 - !!! Exception during processing !!! PytorchStreamReader failed reading zip archive: failed finding central directory
2025-11-26T08:38:22.349998 - Traceback (most recent call last):
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 510, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 324, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 298, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 286, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 269, in main
sam_model = load_sam_model(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 86, in load_sam_model
sam = sam_model_registry[model_type](checkpoint=sam_checkpoint_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 38, in build_sam_vit_b
return _build_sam(
^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 105, in _build_sam
state_dict = torch.load(f)
^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\ComfyUI-Impact-Subpack\modules\subcore.py", line 216, in torch_wrapper
return orig_torch_load(*args, **load_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 1486, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 771, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

2025-11-26T08:38:22.352990 - Prompt executed in 52.80 seconds
2025-11-26T08:45:56.094488 - got prompt
2025-11-26T08:45:56.116432 - Failed to validate prompt for output 94:
2025-11-26T08:45:56.116432 - * (prompt):
2025-11-26T08:45:56.116432 - - Value not in list: overwrite_mode: 'true' not in ['false', 'prefix_as_filename']
2025-11-26T08:45:56.116432 - - Failed to convert an input value to a INT value: quality, false, invalid literal for int() with base 10: 'false'
2025-11-26T08:45:56.116432 - * CheckpointLoaderSimple 88:
2025-11-26T08:45:56.116432 - - Value not in list: ckpt_name: 'juggernautXL_v9Rdphoto2Lightning.safetensors' not in ['3Guofeng3_v34.safetensors', 'Shouhui-wwm.safetensors', 'emoxaIllustrious_v10.safetensors', 'helloartOil_helloartOilV10k.safetensors', '油画oilPainting_oilPaintingV10.safetensors', '装饰画floralPatternsMerge_v10.safetensors']
2025-11-26T08:45:56.116432 - * ControlNetLoaderAdvanced 58:
2025-11-26T08:45:56.116432 - - Value not in list: control_net_name: 'control-lora-depth-rank256.safetensors' not in []
2025-11-26T08:45:56.116432 - * LoadImage 86:
2025-11-26T08:45:56.116432 - - Custom validation failed for node: image - Invalid image file: A yellow blob-like cat (4).jpg
2025-11-26T08:45:56.116432 - * CLIPVisionLoader 85:
2025-11-26T08:45:56.116432 - - Value not in list: clip_name: 'CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors' not in []
2025-11-26T08:45:56.116432 - * IPAdapterModelLoader 84:
2025-11-26T08:45:56.116432 - - Value not in list: ipadapter_file: 'ip-adapter-plus_sdxl_vit-h.safetensors' not in []
2025-11-26T08:45:56.116432 - * Image Save 94:
2025-11-26T08:45:56.117429 - - Value not in list: overwrite_mode: 'true' not in ['false', 'prefix_as_filename']
2025-11-26T08:45:56.117429 - - Failed to convert an input value to a INT value: quality, false, invalid literal for int() with base 10: 'false'
2025-11-26T08:45:56.117429 - Output will be ignored
2025-11-26T08:45:56.117429 - Failed to validate prompt for output 64:
2025-11-26T08:45:56.117429 - Output will be ignored
2025-11-26T08:45:56.117429 - Failed to validate prompt for output 53:
2025-11-26T08:45:56.117429 - Output will be ignored
2025-11-26T08:45:56.132390 - WARNING: [Errno 2] No such file or directory: 'D:\\comfyui\\ComfyUI-aki-v1.7\\ComfyUI\\input\\A yellow blob-like cat (4).jpg'
2025-11-26T08:45:56.143361 - using extra model: D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\models\sams\sam_vit_b_01ec64.pth
2025-11-26T08:45:56.584323 - !!! Exception during processing !!! PytorchStreamReader failed reading zip archive: failed finding central directory
2025-11-26T08:45:56.585291 - Traceback (most recent call last):
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 510, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 324, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 298, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\execution.py", line 286, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 269, in main
sam_model = load_sam_model(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 86, in load_sam_model
sam = sam_model_registry[model_type](checkpoint=sam_checkpoint_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 38, in build_sam_vit_b
return _build_sam(
^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\segment_anything\build_sam.py", line 105, in _build_sam
state_dict = torch.load(f)
^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\ComfyUI\custom_nodes\ComfyUI-Impact-Subpack\modules\subcore.py", line 216, in torch_wrapper
return orig_torch_load(*args, **load_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 1486, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyui\ComfyUI-aki-v1.7\python\Lib\site-packages\torch\serialization.py", line 771, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

2025-11-26T08:45:56.588280 - Prompt executed in 0.47 seconds

## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

## Additional Context
(Please add any additional context or steps to reproduce the error here)
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.