-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Image save filename consistency #1421
Comments
Fooocus should always use generate_temp_filename from https://github.com/lllyasviel/Fooocus/blob/main/modules/util.py#L141 (tested locally and in Colab). |
@mJastrzebski6 just to make sure, are you certain you're using the latest version of Fooocus (2.1.857)? |
I opened the webpage clicked generate |
@flashthepublic can you please also check? |
For information in the History log filename seems correct so this might be the issue |
Can't reproduce, maybe somebody else is able to help. It also works on Colab for me 😐 |
One more thing: are you maybe using Firefox? (i tested it in Chrome, but there seem to be a few things not working in FF such as #1425) |
No, Tested in Brave and Chrome |
That's really weird. Can you please provide your console output and check maybe also in Colab, so we can rule out the environment and confirm it independently? |
I'm experiencing the same with the latest version of Fooocus. When I right click on an image from the gallery in both Chrome and Firefox, it always wants to save it as "image.png". |
same here, both on firefox and chrome, both right click and download button - image.png |
Still not able to reproduce this behavior... Also see #1798. |
Ok, i was able to reproduce the situation. Quick background analysis:
In general, the output of the files has nothing to do with saving the images in the outputs folder. Fooocus can not influence the filename in the gallery component without adjustments as the images are temporarily created and stored by Gradio in the gradio temp folder after providing the image in a numpy array. Before you ask: the caption does not influence the filename, already tried to make it work with that. Above reasons show that this issue should not be classified as a bug, but an enhancement. A potential implementation would be to save each image from numpy to disk to gradio temp file directory, rename the file to the corresponding timestamp when it's been created and then return the filepath string to Gradio. I hope the analysis has shed some light on the situation at hand. |
Definitely an issue with Firefox, both local and in colab. |
Probably tangentially related, but my Fooocus install, even when using latest from |
To me it seems like gradio is working as designed. How are images ending up in output though? |
@machineminded https://github.com/lllyasviel/Fooocus/blob/main/modules/private_logger.py#L27 I'm working on the implementation. |
Something else may be going on with that, saving to the outputs folder has been rock solid since day 1 on all my installs, local and colab without fail. If you open a new issue and add your logs and details on your install we can look into it. |
You can find the implementation in #1932 (comment). |
Is your feature request related to a problem? Please describe.
When you save an image sometime the filename used by the browser is just "image.png" which leads to issue when you save multiple images
Sometimes its a more usable "image - timestamp" (ex: "image - 2023-12-15T093912.142")
Describe the idea you'd like
Could it be consistently the name with the timestamp? it's easier to save when you organize multiple generation in different folders
The text was updated successfully, but these errors were encountered: