mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tweaks to documentation and call signature for advanced prompting
This commit is contained in:
@ -110,10 +110,15 @@ See the section below on "Prompt Blending" for more information about how this w
|
||||
|
||||
### Cross-Attention Control ('prompt2prompt')
|
||||
|
||||
Generate an image with a given prompt and then paint over the image
|
||||
using the `prompt2prompt` syntax to substitute words in the original
|
||||
prompt for words in a new prompt. Based off [bloc97's
|
||||
colab](https://github.com/bloc97/CrossAttentionControl).
|
||||
Sometimes an image you generate is almost right, and you just want to
|
||||
change one detail without affecting the rest. You could use a photo editor and inpainting
|
||||
to overpaint the area, but that's a pain. Here's where `prompt2prompt`
|
||||
comes in handy.
|
||||
|
||||
Generate an image with a given prompt, record the seed of the image,
|
||||
and then use the `prompt2prompt` syntax to substitute words in the
|
||||
original prompt for words in a new prompt. This works for `img2img` as well.
|
||||
|
||||
|
||||
* `a ("fluffy cat").swap("smiling dog") eating a hotdog`.
|
||||
* quotes optional: `a (fluffy cat).swap(smiling dog) eating a hotdog`.
|
||||
@ -125,6 +130,9 @@ colab](https://github.com/bloc97/CrossAttentionControl).
|
||||
* Convenience option `shape_freedom` (0-1) to specify how much "freedom" Stable Diffusion should have to change the shape of the subject being swapped.
|
||||
* `a (cat).swap(dog, shape_freedom=0.5) eating a hotdog`.
|
||||
|
||||
The `prompt2prompt` code is based off [bloc97's
|
||||
colab](https://github.com/bloc97/CrossAttentionControl).
|
||||
|
||||
Note that `prompt2prompt` is not currently working with the runwayML
|
||||
inpainting model, and may never work due to the way this model is set
|
||||
up. If you attempt to use `prompt2prompt` you will get the original
|
||||
|
Reference in New Issue
Block a user