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

SaveImage not properly handling save file formatting strings #144

Open
halr9000 opened this issue Aug 15, 2023 · 0 comments
Open

SaveImage not properly handling save file formatting strings #144

halr9000 opened this issue Aug 15, 2023 · 0 comments

Comments

@halr9000
Copy link

I'm trying to use a better filename convention than just "ComfyUI", so I went to try a string which works outside of comfybox as per the comfyui docs, such as: %date:yyyy-MM-dd%/%Generate Image.seed%-

Instead of a filename such as: 2024-08-15/234r234234234-00001.png, it throws an exception. Here's the console:

!!! Exception during processing !!!
Traceback (most recent call last):
  File "D:\hal\stable-diffusion\ComfyUI\folder_paths.py", line 219, in get_save_image_path
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:\\hal\\stable-diffusion\\ComfyUI\\output\\%date:yyyy-MM-dd%'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\hal\stable-diffusion\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "D:\hal\stable-diffusion\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 "D:\hal\stable-diffusion\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "D:\hal\stable-diffusion\ComfyUI\nodes.py", line 1265, in save_images
    full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
  File "D:\hal\stable-diffusion\ComfyUI\folder_paths.py", line 223, in get_save_image_path
  File "C:\Users\hal\AppData\Local\Programs\Python\Python310\lib\os.py", line 225, in makedirs
    mkdir(name, mode)
NotADirectoryError: [WinError 267] The directory name is invalid: 'D:\\hal\\stable-diffusion\\ComfyUI\\output\\%date:yyyy-MM-dd%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant