stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

RFE: Add [model] to Directory Name Pattern

Open dinosaw opened this issue 3 years ago • 6 comments

Is your feature request related to a problem? Please describe. As of right now, the closest option you can use regarding checkpoint/model information when saving images to a subdirectory is by the [model_hash]. This is problematic in the fact that the hash is not descriptive enough seeing as it's obviously a random string of characters making up the integrity of a file.

Describe the solution you'd like I would like the option to use [model] over [model_hash] so that when I save images to a subdirectory, the name of that directory would be something like sd-v1-4.ckpt or sd-v1-4, instead of 7460a6fa.

Describe alternatives you've considered I've tried using the model_hash variable, but again, not descriptive enough.

Additional context N/A

dinosaw avatar Oct 11 '22 23:10 dinosaw

I believe #2459 is also relevant here, several of my DreamBooth models have the same hash

jmpaz avatar Oct 13 '22 20:10 jmpaz

I would like this as well. [model_name]/[date] seems like a sensible way to organize outputs.

ThereforeGames avatar Oct 21 '22 18:10 ThereforeGames

+1 on a [model] / [model_name] sorting option for folders/filename !

FloydianSound avatar Nov 22 '22 03:11 FloydianSound

Made a PR for this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4986

mcmonkey4eva avatar Nov 23 '22 14:11 mcmonkey4eva

Made a PR for this: #4986

Thanks a lot for this. Tested and working. Hoping for the merge. Appreciate it!

dinosaw avatar Nov 23 '22 16:11 dinosaw

That PR was pulled, you can close this issue now. Simply use [model_name] in your save directory pattern setting.

mcmonkey4eva avatar Nov 27 '22 22:11 mcmonkey4eva