Fix usage of simplified API in readme

This commit is contained in:
Kevin Gibbons 2022-08-22 21:01:15 -07:00 committed by GitHub
parent 6d1219deec
commit 1b7d414784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ 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 = model.txt2img("a unicorn in manhattan")
~~~~
Outputs is a list of lists in the format [[filename1,seed1],[filename2,seed2]...]