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

PytorchStreamReader failed reading zip archive: failed finding central directory #403

Open
3 tasks done
christan831230s opened this issue Aug 25, 2024 · 3 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@christan831230s
Copy link

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

PytorchStreamReader failed reading zip archive: failed finding central directory

File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 379, in execute
result = reactor.restore_face(self,result,face_restore_model,face_restore_visibility,codeformer_weight,facedetection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 204, in restore_face
checkpoint = torch.load(model_path)["params_ema"]
^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\python_embeded\Lib\site-packages\torch\serialization.py", line 1004, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\python_embeded\Lib\site-packages\torch\serialization.py", line 456, in init
super().init(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Steps to reproduce the problem

USE WORKLOW
未命名

Sysinfo

WINDOW
COMFYUI
3060TI 12G

Relevant console log

PytorchStreamReader failed reading zip archive: failed finding central directory

File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 379, in execute
result = reactor.restore_face(self,result,face_restore_model,face_restore_visibility,codeformer_weight,facedetection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 204, in restore_face
checkpoint = torch.load(model_path)["params_ema"]
^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\python_embeded\Lib\site-packages\torch\serialization.py", line 1004, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_play\python_embeded\Lib\site-packages\torch\serialization.py", line 456, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Additional information

No response

@christan831230s christan831230s added bug Something isn't working new labels Aug 25, 2024
@christan831230s
Copy link
Author

Wordkflow
2024-04-09 reactor融合人脸工作流
workflow.json

@chinesewebman
Copy link

the same error in MacOS M1, don't know which zip file is wrong.

@Gourieff
Copy link
Owner

@christan831230s Show please your pip list

python_embeded\python.exe -m pip list

@Gourieff Gourieff removed the new label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants