ehsanakh patrickvonplaten commited on
Commit
5e6ac90
1 Parent(s): 804821b

Improve default guidance scale (#3)

Browse files

- Improve default guidance scale (86c11fe24b4ba54bf82a218b8c22ac2276abe31b)


Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -38,7 +38,9 @@ Install diffusers >= 0.24.0 and some dependencies:
38
  pip install transformers accelerate safetensors
39
  ```
40
 
41
- To use the model, run:
 
 
42
 
43
  ```python
44
  from diffusers import DiffusionPipeline
@@ -54,7 +56,7 @@ pipe = DiffusionPipeline.from_pretrained(
54
  pipe.to("cuda")
55
 
56
  prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
57
- image = pipe(prompt=prompt).images[0]
58
  ```
59
 
60
  ### User Study
 
38
  pip install transformers accelerate safetensors
39
  ```
40
 
41
+ To use the model, run the following snippet.
42
+
43
+ **Note**: It is recommend to use **`guidance_scale=3.0`**.
44
 
45
  ```python
46
  from diffusers import DiffusionPipeline
 
56
  pipe.to("cuda")
57
 
58
  prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
59
+ image = pipe(prompt=prompt, guidance_scale=3.0).images[0]
60
  ```
61
 
62
  ### User Study