kijai/ComfyUI-CCSR

No such file or directory: ".../custom_nodes/ComfyUI-CCSR/empty_text_embed.safetensors"

Closed this issue · 4 comments

Hi, after I updated to the latest version, an error message appears when I try to run this custom node:

Error occurred when executing CCSR_Upscale:  No such file or directory: "/home/silver/Playgrounds/AI/sd-comfyui/custom_nodes/ComfyUI-CCSR/empty_text_embed.safetensors"  File "/home/silver/Playgrounds/AI/sd-comfyui/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/silver/Playgrounds/AI/sd-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 "/home/silver/Playgrounds/AI/sd-comfyui/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/home/silver/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/home/silver/Playgrounds/AI/sd-comfyui/custom_nodes/ComfyUI-CCSR/nodes.py", line 77, in process empty_text_embed_sd = comfy.utils.load_torch_file(os.path.join(script_directory, "empty_text_embed.safetensors")) File "/home/silver/Playgrounds/AI/sd-comfyui/comfy/utils.py", line 15, in load_torch_file sd = safetensors.torch.load_file(ckpt, device=device.type) File "/home/silver/.local/lib/python3.10/site-packages/safetensors/torch.py", line 308, in load_file with safe_open(filename, framework="pt", device=device) as f:

I try to find this 'safetensors' file everywhere but no luck. Do you have any idea what went wrong? Thank you for your time.

遇到了同样的问题,介绍里根本没提empty_text_embed.safetensors,请问有人解决吗

+1

My bad, I saved the empty embed as safetensors instead, but forgot that I had .safetensors files on ignore list so it was never pushed along the code. Fixed now.

My bad, I saved the empty embed as safetensors instead, but forgot that I had .safetensors files on ignore list so it was never pushed along the code. Fixed now.

Thanks, it works smoothly again. Sorry for forgot to close this issue earlier.