mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Added info on img2img functionality.
This commit is contained in:
parent
58f1962671
commit
74f238d310
33
README.md
33
README.md
@ -3,21 +3,7 @@
|
|||||||
This is a fork of CompVis/stable-diffusion, the wonderful open source
|
This is a fork of CompVis/stable-diffusion, the wonderful open source
|
||||||
text-to-image generator.
|
text-to-image generator.
|
||||||
|
|
||||||
The original has been modified in several minor ways:
|
The original has been modified in several ways:
|
||||||
|
|
||||||
## Simplified API for text to image generation
|
|
||||||
|
|
||||||
There is now a simplified API for text to image generation, which
|
|
||||||
lets you create images from a prompt in just three lines of code:
|
|
||||||
|
|
||||||
~~~~
|
|
||||||
from ldm.simplet2i import T2I
|
|
||||||
model = T2I()
|
|
||||||
outputs = model.text2image("a unicorn in manhattan")
|
|
||||||
~~~~
|
|
||||||
|
|
||||||
Outputs is a list of lists in the format [[filename1,seed1],[filename2,seed2]...]
|
|
||||||
Please see ldm/simplet2i.py for more information.
|
|
||||||
|
|
||||||
## Interactive command-line interface similar to the Discord bot
|
## Interactive command-line interface similar to the Discord bot
|
||||||
|
|
||||||
@ -63,8 +49,25 @@ weights (512x512) and the older (256x256) latent diffusion weights
|
|||||||
identical to those used in the Discord bot, except you don't need to
|
identical to those used in the Discord bot, except you don't need to
|
||||||
type "!dream". Pass "-h" (or "--help") to list the arguments.
|
type "!dream". Pass "-h" (or "--help") to list the arguments.
|
||||||
|
|
||||||
|
This script also provides an img2img feature that lets you seed your
|
||||||
|
creations with a drawing or photo.
|
||||||
|
|
||||||
For command-line help, type -h (or --help) at the dream> prompt.
|
For command-line help, type -h (or --help) at the dream> prompt.
|
||||||
|
|
||||||
|
## Simplified API for text to image generation
|
||||||
|
|
||||||
|
There is now a simplified API for text to image generation, which
|
||||||
|
lets you create images from a prompt in just three lines of code:
|
||||||
|
|
||||||
|
~~~~
|
||||||
|
from ldm.simplet2i import T2I
|
||||||
|
model = T2I()
|
||||||
|
outputs = model.text2image("a unicorn in manhattan")
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
Outputs is a list of lists in the format [[filename1,seed1],[filename2,seed2]...]
|
||||||
|
Please see ldm/simplet2i.py for more information.
|
||||||
|
|
||||||
## Workaround for machines with limited internet connectivity
|
## Workaround for machines with limited internet connectivity
|
||||||
|
|
||||||
My development machine is a GPU node in a high-performance compute
|
My development machine is a GPU node in a high-performance compute
|
||||||
|
Loading…
x
Reference in New Issue
Block a user