Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #271

Open
LiXiuping opened this issue Sep 5, 2024 · 0 comments

Comments

@LiXiuping
Copy link

Hi, anybody know how to solve this problem ?
I meet this when execute the "BRIAAI Matting" node:
image
Prompt executed in 0.15 seconds
got prompt
Failed to validate prompt for output 76:

  • ImageResize+ 53:
    • Value not in list: method: 'True' not in ['stretch', 'keep proportion', 'fill / crop', 'pad']
  • ImageResize+ 54:
    • Value not in list: method: 'False' not in ['stretch', 'keep proportion', 'fill / crop', 'pad']
      Output will be ignored
      Failed to validate prompt for output 87:
  • SUPIR_Upscale 86:
    • Value not in list: supir_model: 'SUPIR-v0F.ckpt' not in (list of length 28)
    • Value not in list: sdxl_model: 'dreamshaperXL_alpha2Xl10.safetensors' not in (list of length 28)
      Output will be ignored
      !!! Exception during processing !!! PytorchStreamReader failed reading zip archive: failed finding central directory
      Traceback (most recent call last):
      File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, 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:\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, 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:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in map_node_over_list
      process_inputs(input_dict, i)
      File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
      results.append(getattr(obj, func)(**inputs))
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Video-Matting\comfyui_vidmatt\briaai_rembg_init
      .py", line 45, in matting
      model.load_state_dict(torch.load(model_path, map_location="cpu"))
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 993, in load
      with _open_zipfile_reader(opened_file) as opened_zipfile:
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 447, in init
      super().init(torch._C.PyTorchFileReader(name_or_buffer))
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Prompt executed in 0.13 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant