ltdrdata / ComfyUI-Impact-Pack

Custom nodes pack for ComfyUI This custom node helps to conveniently enhance images through Detector, Detailer, Upscaler, Pipe, and more.
GNU General Public License v3.0
1.73k stars 162 forks source link

open in sam detector is error #733

Open Lyqxyz opened 1 week ago

Lyqxyz commented 1 week ago

[INFO] ComfyUI-Impact-Pack: Loading SAM model 'I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\models' [INFO] ComfyUI-Impact-Pack: SAM model loaded. Exception in thread Thread-12 (async_prepare_sam): Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\impact_server.py", line 77, in async_prepare_sam sam_model = sam_model_registrymodel_kind ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\segment_anything\build_sam.py", line 38, in build_sam_vit_b return _build_sam( ^^^^^^^^^^^ File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\segment_anything\build_sam.py", line 105, in _build_sam state_dict = torch.load(f) ^^^^^^^^^^^^^ File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\utils\patches.py", line 86, in torch_load return _torch_load(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1004, in load with _open_zipfile_reader(opened_file) as opened_zipfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 456, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory aa9dc59d74180a64c43628467e2608f

ltdrdata commented 1 week ago

It seems that your model file is invalid.

Lyqxyz commented 1 week ago

It seems that your model file is invalid. model alldownloaded and all other functions run very well,ultralytics version required?

ltdrdata commented 1 week ago

It seems that your model file is invalid. model alldownloaded and all other functions run very well,ultralytics version required?

Check the sam model file.

Lyqxyz commented 1 week ago

It seems that your model file is invalid. model alldownloaded and all other functions run very well,ultralytics version required?

Check the sam model file.

It seems that your model file is invalid. model alldownloaded and all other functions run very well,ultralytics version required?

Check the sam model file. All models have been downloaded, but there are still errors 170294bd6f0381195a8c80e286edc1c

ltdrdata commented 1 week ago

What model did you selected?