comfyui-inpaint-nodes icon indicating copy to clipboard operation
comfyui-inpaint-nodes copied to clipboard

RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found

Open Song367 opened this issue 1 year ago • 3 comments

lama: E:\workplace\ComfyUI\models\inpaint\big-lama.pt !!! Exception during processing!!! PytorchStreamReader failed locating file constants.pkl: file not found Traceback (most recent call last): File "E:\workplace\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\workplace\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "E:\workplace\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "E:\workplace\ComfyUI\custom_nodes\comfyui-inpaint-nodes\nodes.py", line 312, in load sd = torch.jit.load(model_file, map_location="cpu").state_dict() File "E:\workplace\ComfyUI\venvs\lib\site-packages\torch\jit_serialization.py", line 159, in load cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes) # type: ignore[call-arg] RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found

Song367 avatar May 05 '24 08:05 Song367

I have the same issue with constants.pkl on the LaMa Inpainting Node

PerrySm avatar Jul 06 '24 16:07 PerrySm

Is there a professional answer to this?

NiuRou520 avatar Jul 08 '24 12:07 NiuRou520

No idea apart from trying to re-download the file. Sounds like it's incomplete/corrupt.

Acly avatar Jul 08 '24 18:07 Acly