mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
update IMG2IMG.md
This commit is contained in:
parent
470b267939
commit
8cdd961ad2
@ -12,21 +12,19 @@ stable diffusion to build the prompt on top of the image you provide, preserving
|
|||||||
the original's basic shape and layout. To use it, provide the `--init_img`
|
the original's basic shape and layout. To use it, provide the `--init_img`
|
||||||
option as shown here:
|
option as shown here:
|
||||||
|
|
||||||
```commandline
|
!!! example ""
|
||||||
tree on a hill with a river, nature photograph, national geographic -I./test-pictures/tree-and-river-sketch.png -f 0.85
|
|
||||||
```
|
|
||||||
|
|
||||||
This will take the original image shown here:
|
```commandline
|
||||||
|
tree on a hill with a river, nature photograph, national geographic -I./test-pictures/tree-and-river-sketch.png -f 0.85
|
||||||
|
```
|
||||||
|
|
||||||
<figure markdown>
|
<figure markdown>
|
||||||
{ width=320 }
|
|
||||||
</figure>
|
|
||||||
|
|
||||||
and generate a new image based on it as shown here:
|
| original image | generated image |
|
||||||
|
| :------------: | :-------------: |
|
||||||
|
| { width=320 } | { width=320 } |
|
||||||
|
|
||||||
<figure markdown>
|
</figure>
|
||||||
{ width=320 }
|
|
||||||
</figure>
|
|
||||||
|
|
||||||
The `--init_img` (`-I`) option gives the path to the seed picture. `--strength`
|
The `--init_img` (`-I`) option gives the path to the seed picture. `--strength`
|
||||||
(`-f`) controls how much the original will be modified, ranging from `0.0` (keep
|
(`-f`) controls how much the original will be modified, ranging from `0.0` (keep
|
||||||
@ -88,13 +86,15 @@ from a prompt. If the step count is 10, then the "latent space" (Stable
|
|||||||
Diffusion's internal representation of the image) for the prompt "fire" with
|
Diffusion's internal representation of the image) for the prompt "fire" with
|
||||||
seed `1592514025` develops something like this:
|
seed `1592514025` develops something like this:
|
||||||
|
|
||||||
```bash
|
!!! example ""
|
||||||
invoke> "fire" -s10 -W384 -H384 -S1592514025
|
|
||||||
```
|
|
||||||
|
|
||||||
<figure markdown>
|
```bash
|
||||||

|
invoke> "fire" -s10 -W384 -H384 -S1592514025
|
||||||
</figure>
|
```
|
||||||
|
|
||||||
|
<figure markdown>
|
||||||
|
{ width=720 }
|
||||||
|
</figure>
|
||||||
|
|
||||||
Put simply: starting from a frame of fuzz/static, SD finds details in each frame
|
Put simply: starting from a frame of fuzz/static, SD finds details in each frame
|
||||||
that it thinks look like "fire" and brings them a little bit more into focus,
|
that it thinks look like "fire" and brings them a little bit more into focus,
|
||||||
@ -109,25 +109,23 @@ into the sequence at the appropriate point, with just the right amount of noise.
|
|||||||
|
|
||||||
### A concrete example
|
### A concrete example
|
||||||
|
|
||||||
I want SD to draw a fire based on this hand-drawn image:
|
!!! example "I want SD to draw a fire based on this hand-drawn image"
|
||||||
|
|
||||||
<figure markdown>
|
{ align=left }
|
||||||

|
|
||||||
</figure>
|
|
||||||
|
|
||||||
Let's only do 10 steps, to make it easier to see what's happening. If strength
|
Let's only do 10 steps, to make it easier to see what's happening. If strength
|
||||||
is `0.7`, this is what the internal steps the algorithm has to take will look
|
is `0.7`, this is what the internal steps the algorithm has to take will look
|
||||||
like:
|
like:
|
||||||
|
|
||||||
<figure markdown>
|
<figure markdown>
|
||||||

|

|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
With strength `0.4`, the steps look more like this:
|
With strength `0.4`, the steps look more like this:
|
||||||
|
|
||||||
<figure markdown>
|
<figure markdown>
|
||||||

|

|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
Notice how much more fuzzy the starting image is for strength `0.7` compared to
|
Notice how much more fuzzy the starting image is for strength `0.7` compared to
|
||||||
`0.4`, and notice also how much longer the sequence is with `0.7`:
|
`0.4`, and notice also how much longer the sequence is with `0.7`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user