Model card
Browse files
README.md
CHANGED
|
@@ -53,7 +53,9 @@ pipe = JeverationPipeline("weights/jeveration.pt", decoder="weights/decoder512.p
|
|
| 53 |
source_decoder="weights/source_decoder512.pt")
|
| 54 |
|
| 55 |
# Text-to-image: a list of prompts -> uint8 images [B, 512, 512, 3]
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
Image.fromarray(images[0]).save("dragon.png")
|
| 58 |
|
| 59 |
# Structure to image: an edge map ("hed") or a depth map ("depth"), with a caption of the wanted image
|
|
|
|
| 53 |
source_decoder="weights/source_decoder512.pt")
|
| 54 |
|
| 55 |
# Text-to-image: a list of prompts -> uint8 images [B, 512, 512, 3]
|
| 56 |
+
prompt = ("A baby dragon with glittering teal scales curled up on a pile of gold coins, "
|
| 57 |
+
"warm candlelight, fantasy illustration.")
|
| 58 |
+
images = pipe.text_to_image([prompt], pipe.generator(0))
|
| 59 |
Image.fromarray(images[0]).save("dragon.png")
|
| 60 |
|
| 61 |
# Structure to image: an edge map ("hed") or a depth map ("depth"), with a caption of the wanted image
|