Commit
•
b70e3a2
1
Parent(s):
37b0773
Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ The original Perturbed-Attention Guidance by [Hyoungwon Cho](https://huggingface
|
|
22 |
|
23 |
Loading Custom Piepline:
|
24 |
|
25 |
-
```
|
26 |
from diffusers import StableDiffusionXLPipeline
|
27 |
|
28 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
@@ -37,7 +37,7 @@ pipe = pipe.to(device)
|
|
37 |
|
38 |
Unconditional sampling with PAG:
|
39 |
|
40 |
-
```
|
41 |
output = pipe(
|
42 |
"",
|
43 |
num_inference_steps=50,
|
@@ -49,7 +49,7 @@ output = pipe(
|
|
49 |
|
50 |
Sampling with PAG and CFG:
|
51 |
|
52 |
-
```
|
53 |
output = pipe(
|
54 |
"the spirit of a tamagotchi wandering in the city of Vienna",
|
55 |
num_inference_steps=25,
|
|
|
22 |
|
23 |
Loading Custom Piepline:
|
24 |
|
25 |
+
```py
|
26 |
from diffusers import StableDiffusionXLPipeline
|
27 |
|
28 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
|
37 |
|
38 |
Unconditional sampling with PAG:
|
39 |
|
40 |
+
```py
|
41 |
output = pipe(
|
42 |
"",
|
43 |
num_inference_steps=50,
|
|
|
49 |
|
50 |
Sampling with PAG and CFG:
|
51 |
|
52 |
+
```py
|
53 |
output = pipe(
|
54 |
"the spirit of a tamagotchi wandering in the city of Vienna",
|
55 |
num_inference_steps=25,
|