patrickvonplaten commited on
Commit
da59868
1 Parent(s): 3aeff9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -20,7 +20,7 @@ The Kandinsky model is created by [Arseniy Shakhmatov](https://github.com/cene55
20
  Kandinsky 2.1 is available in diffusers!
21
 
22
  ```python
23
- pip install diffusers transformers
24
  ```
25
  ### Text to image
26
 
@@ -38,9 +38,9 @@ prompt = "A alien cheeseburger creature eating itself, claymation, cinematic, mo
38
  negative_prompt = "low quality, bad quality"
39
 
40
  generator = torch.Generator(device="cuda").manual_seed(12)
41
- image_embeds, negative_image_embeds = pipe_prior(prompt, negative_prompt, generator=generator).to_tuple()
42
 
43
- image = t2i_pipe(prompt, image_embeds=image_embeds, negative_image_embeds=negative_image_embeds).images[0]
44
  image.save("cheeseburger_monster.png")
45
  ```
46
 
 
20
  Kandinsky 2.1 is available in diffusers!
21
 
22
  ```python
23
+ pip install diffusers transformers accelerate
24
  ```
25
  ### Text to image
26
 
 
38
  negative_prompt = "low quality, bad quality"
39
 
40
  generator = torch.Generator(device="cuda").manual_seed(12)
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