From 56a8f2faf1f25ed4e99b7cad96e51a4935233765 Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Tue, 13 Sep 2022 09:49:05 +0300 Subject: [PATCH] Updated Custom scripts from users (markdown) --- Custom-scripts-from-users.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Custom-scripts-from-users.md b/Custom-scripts-from-users.md index 376534d..beda6b1 100644 --- a/Custom-scripts-from-users.md +++ b/Custom-scripts-from-users.md @@ -7,3 +7,12 @@ It allows a matrix prompt as follows: ` cat in a ` Does not actually draw a matrix, just produces pictures. + +## Wildcards +https://github.com/jtkelm2/stable-diffusion-webui-1/blob/master/scripts/wildcards.py + +Added script support so that prompts can contain wildcard terms (indicated by surrounding double underscores), with values instantiated randomly from the corresponding .txt file in the folder `/scripts/wildcards/`. For example: + +`a woman at a cafe by __artist__ and __artist__` + +will draw two random artists from `artist.txt`. This works independently on each prompt, so that one can e.g. generate a batch of 100 images with the same prompt input using wildcards, and each output will have unique artists (or styles, or genres, or anything that the user creates their own .txt file for) attached to it.