Acly / comfyui-inpaint-nodes

Nodes for better inpainting with ComfyUI: Fooocus inpaint model for SDXL, LaMa, MAT, and various other tools for pre-filling inpaint & outpaint areas.
GNU General Public License v3.0
634 stars 42 forks source link

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

Closed Song367 closed 5 days ago

Song367 commented 5 months ago

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

PerrySm commented 3 months ago

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

NiuRou520 commented 2 months ago

Is there a professional answer to this?

Acly commented 2 months ago

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