Update README.md
#5
by YiYiXu HF Staff - opened
README.md
CHANGED
|
@@ -37,10 +37,9 @@ t2i_pipe.to("cuda")
|
|
| 37 |
prompt = "A alien cheeseburger creature eating itself, claymation, cinematic, moody lighting"
|
| 38 |
negative_prompt = "low quality, bad quality"
|
| 39 |
|
| 40 |
-
|
| 41 |
-
image_embeds, negative_image_embeds = pipe_prior(prompt, negative_prompt, guidance_scale=1.0, generator=generator).to_tuple()
|
| 42 |
|
| 43 |
-
image = t2i_pipe(prompt, negative_prompt=negative_prompt, image_embeds=image_embeds, negative_image_embeds=negative_image_embeds).images[0]
|
| 44 |
image.save("cheeseburger_monster.png")
|
| 45 |
```
|
| 46 |
|
|
@@ -75,8 +74,7 @@ pipe.to("cuda")
|
|
| 75 |
prompt = "A fantasy landscape, Cinematic lighting"
|
| 76 |
negative_prompt = "low quality, bad quality"
|
| 77 |
|
| 78 |
-
|
| 79 |
-
image_embeds, negative_image_embeds = pipe_prior(prompt, negative_prompt, generator=generator).to_tuple()
|
| 80 |
|
| 81 |
out = pipe(
|
| 82 |
prompt,
|
|
|
|
| 37 |
prompt = "A alien cheeseburger creature eating itself, claymation, cinematic, moody lighting"
|
| 38 |
negative_prompt = "low quality, bad quality"
|
| 39 |
|
| 40 |
+
image_embeds, negative_image_embeds = pipe_prior(prompt, negative_prompt, guidance_scale=1.0).to_tuple()
|
|
|
|
| 41 |
|
| 42 |
+
image = t2i_pipe(prompt, negative_prompt=negative_prompt, image_embeds=image_embeds, negative_image_embeds=negative_image_embeds, height=768, width=768).images[0]
|
| 43 |
image.save("cheeseburger_monster.png")
|
| 44 |
```
|
| 45 |
|
|
|
|
| 74 |
prompt = "A fantasy landscape, Cinematic lighting"
|
| 75 |
negative_prompt = "low quality, bad quality"
|
| 76 |
|
| 77 |
+
image_embeds, negative_image_embeds = pipe_prior(prompt, negative_prompt).to_tuple()
|
|
|
|
| 78 |
|
| 79 |
out = pipe(
|
| 80 |
prompt,
|