AUTOMATIC1111 / stable-diffusion-webui

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

[Feature Request]: Batch txt2img from folder of images metadata/settings #9560

Open hassan-sd opened 1 year ago

hassan-sd commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

The goal is to run a batch txt2img but using full prompts and settings from a folder of images that have webui metadata in them.

Essentially to run all the same settings from images as before but maybe on a new model, this is different to running an xy plot as sometimes we may want to run batch images on collected metadata or "favourite" metadata that we have from a folder of images we saved or outputted previously.

Proposed workflow

  1. Go to "txt2img" tab
  2. New section "Batch Metadata from Directory"
  3. Select an input folder of images that all contain metadata for webui settings
  4. Have configurable overrides such as:

The script/extension should take the metadata from an image in the folder, copy all the settings into the txt2img run, any settings that the user overrides such as seed will not be taken from the metadata but the UI instead, the job should run across all images in the folder.

Additional information

No response

Z-nonymous commented 1 year ago

I have made scripts to do that: https://github.com/Z-nonymous/sd_webui_batchscripts

The source is not from a directory though, but a list of file paths instead (from a file or copy/pasted). Also, they don't have the override features.

I'll see if I can find some time do add some overrides to my scripts later this week. Maybe I could also add directory as a source.

hassan-sd commented 1 year ago

I have made scripts to do that: https://github.com/Z-nonymous/sd_webui_batchscripts

The source is not from a directory though, but a list of file paths instead (from a file or copy/pasted). Also, they don't have the override features.

I'll see if I can find some time do add some overrides to my scripts later this week. Maybe I could also add directory as a source.

Thanks, it's helpful but not as desired as this feature request which would behave in a similar fashion to batch img2img but just with a folder of controlnet input images.

Z-nonymous commented 1 year ago

Then I suppose this one is a duplicate of https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9080

That would have to be implemented in the ControlNet extension, not the webui.

Z-nonymous commented 1 year ago

@hassan-sd Have you seen the discussion in #9080 ? There is an option to specify a folder now in ControlNet extension. Maybe this issue can be closed.