AUTOMATIC1111 / stable-diffusion-webui

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

[Feature Request]: (1) Write prompt and settings into a file in the same format that is required to read prompt and settings from a file and (2) allow to read a batch of files from a folder. #11758

Open blobbfobb opened 1 year ago

blobbfobb commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

(1) Prompt and settings are written into a file. Prompt and settings can be read from a file (since https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/248). But the two files have different formats. It would be nice if the WebUI created files that it can read.

(2) Additionally it would be wonderful if it were possible to select more than one file at a time, so that I can set up the WebUI to create several images from multiple files and then go to sleep while my computer goes through the files one by one and creates images from each of them.

Proposed workflow

  1. Go to Settings and select "Create a text file next to every image with generation parameters."
  2. Generate a bunch of images.
  3. Select "Scripts > Prompts from files in folder".
  4. Select a folder with the files that the WebUI created.
  5. Click "Generate" and go to sleep.
  6. Wake up to one image created from each file in the folder.

Additional information

No response

missionfloyd commented 1 year ago

For the first one, drop a text file on the prompt box and click ↙.

w-e-w commented 1 year ago

2nd extensions Web UI client queue or Agent Scheduler

blobbfobb commented 1 year ago

2nd extensions Web UI client queue or Agent Scheduler

In the documentation to the two extensions, there is no reference to batch-reading files from a folder. Do they do that? If so, please explain how.

blobbfobb commented 1 year ago

For the first one, drop a text file on the prompt box and click ↙.

Dropping a text file on the prompt box ≠ reading a prompt and settings from a text file.

The whole idea behind my feature request is to automatically read in a batch of text files that were generated by Automatic1111. There is a feature that reads in text files, but it requires a different format and doesn't do batches of files. I don't want to drop files on the prompt box manually, as that would require that I sit in front of the computer for hours if I need to process a large number of text files.

w-e-w commented 1 year ago

so simply put you want a prompt from file or textbox script but able to take in the the format of generation parameters?

blobbfobb commented 1 year ago

@w-e-w I want a Batch process folder with text files script, and I want it to read in the text file format that is generated when you generate an image (or the PNG info or both).