From ed8cff64c62012e4c41df3f083cb35fd1dc0f39f Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Thu, 15 Sep 2022 17:33:58 +0300 Subject: [PATCH] Updated Features (markdown) --- Features.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Features.md b/Features.md index 0a42b5b..1ca516d 100644 --- a/Features.md +++ b/Features.md @@ -242,6 +242,36 @@ There are settings relevant to this feature: - `Interrogate: maximum descripton length` - maximum length for BLIP model's text - `Interrogate: maximum number of lines in text file` - interrogator will only consider this many first lines in a file. Set to 0, default is 1500, which is about as much as a 4GB videocard can handle. +# Prompt editing + +![xy_grid-0022-646033397](https://user-images.githubusercontent.com/20920490/190426933-9748708b-6db0-4cb0-8cb9-3285053916b8.jpg) + +Prompt editing allows you to start sampling one picture, but in the middle swap to something else. The base syntax for this is: + +``` +[from:to:when] +``` + +Where `from` and `to` are arbitrary texts, and `when` is a number the defines how late in the sampling cycle should the switch be made. The later it is, the less power the model has to draw the `to` text in place of `from` text. If `when` is a number between 0 and 1, it's a fraction of the number of steps after which to make the switch. If it's integer greater than zero, it's just the step after which to make the switch. + +Additionally: +- `[to:when]` - adds `to` toprompt after a fixed number of steps (`when`) +- `[from::when]` - removes `from` from prompt after a fixed number of steps (`when`) + +For example, here's how a prompt `fantasy landscape with a [mountain:lake:0.25] and [an oak:a christmas tree:0.75][ in foreground::0.6][ in background:0.25] [shoddy:masterful:0.5]` will look to sampler with 100 steps: + +at start, `fantasy landscape with a mountain and an oak in foreground shoddy` +after step 25, `fantasy landscape with a lake and an oak in foreground in background shoddy` +after step 50, `fantasy landscape with a lake and an oak in foreground in background masterful` +after step 60, `fantasy landscape with a lake and an oak in background masterful` +after step 75, `fantasy landscape with a lake and a christmas tree in background masterful` + +The picture at the op was made with prompt: + +`Official portrait of a smiling world war ii general, [male:female:0.99], cheerful, happy, detailed face, 20th century, highly detailed, cinematic lighting, digital art painting by greg rutkowski` + +And the number 0.99 was replaced with whatever you see in column labels on the image. + # Interrupt Press the Interrupt button to stop current processing.