AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.06k stars 26.83k forks source link

[Feature Request]: Add Image Creation Elapsed Time to PNG Headers and Filename options #13188

Open michaelLochlann opened 1 year ago

michaelLochlann commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Problem Solved: -Easily see Time Taken to create an older image. (Time Taken in Live Preview only shows current image) -This is helpful for benchmarking: ---Time per sampling steps ---Time per upscale settings ---Time per sampler used ---Time per prompt/keywords -Currently you can add date/time generated to the filename or see in Windows, but then you have to calculate time passed in your head by comparing it to nearby files. And that's only if they are all in the same directory and you haven't moved/sorted them.

How the feature would work: 1) Take the "Time Taken: 1min 30 seconds" value that already exists at the bottom of the Live Preview screen. 2) Add the Time Taken value to the end of the PNG headers that get saved to the final image file. ---So you can see in PNG editor or reloading in PNG Info in Automatic1111 ---This could be the exact text since it's a text header 3) Add the Time Taken to the filename options here https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Custom-Images-Filename-Name-and-Subdirectory ---Since it's a filename you could print it as "(filename)_N_min_N_secs" in the filename export ---the file option could be called [time_taken], [processing_time], [elapsed_time] or something like that.

I feel like this might be pretty easy to do and would be extremely useful to everybody, but computers are hard, so who knows.

Thanks

Proposed workflow

See above

Additional information

No response

michaelLochlann commented 1 year ago

And the use case for me personally in this instance, as an example was "I want to see how increasing the sample steps by 1 increases the processing time" however to do that right now you have to do a notepad file and manually track it. If you were going to do that all the time for benchmarking various setting changes and how it effects image time, it would be a huge PITA.

semtex1987 commented 9 months ago

bumping, this seems like an incredibly fundamental and simple feature to add and would be a huge quality of life improvement.