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

Create non-existent folders when saving images #64

Closed
jordanbtucker opened this issue Mar 13, 2023 · 3 comments
Closed

Create non-existent folders when saving images #64

jordanbtucker opened this issue Mar 13, 2023 · 3 comments

Comments

@jordanbtucker
Copy link

jordanbtucker commented Mar 13, 2023

When I set the filename prefix to testing/dog or testing\dog, no images are saved to the output folder. Instead, an error is logged in the console.

FileNotFoundError: [Errno 2] No such file or directory: '...\\ComfyUI\\output\\testing\\dog_00001_.png'

Creating a testing folder in output fixes the error. It would be great if ComfyUI could create any missing folders for the user instead.

@jordanbtucker jordanbtucker changed the title Allow saving images to folders Create non-existed folders when saving images Mar 13, 2023
@jordanbtucker
Copy link
Author

Looks like there is a PR for this already.

Fixed by #60

@jordanbtucker
Copy link
Author

I just realized that creating the folder manually does not properly index the files when they are saved. All files start with the index 1, so they are overwritten each time. #60 fixes this issue too.

@jordanbtucker jordanbtucker changed the title Create non-existed folders when saving images Create non-existent folders when saving images Mar 13, 2023
@comfyanonymous
Copy link
Owner

This is solved by #60

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

2 participants