Update README.md
Browse files
README.md
CHANGED
|
@@ -10,8 +10,16 @@ tags:
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Perturbed-Attention Guidance for SDXL
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
[Project](https://ku-cvlab.github.io/Perturbed-Attention-Guidance/) / [arXiv](https://arxiv.org/abs/2403.17377) / [GitHub](https://github.com/KU-CVLAB/Perturbed-Attention-Guidance)
|
| 17 |
|
|
@@ -37,6 +45,7 @@ pipe = pipe.to(device)
|
|
| 37 |
```
|
| 38 |
|
| 39 |
Unconditional sampling with PAG:
|
|
|
|
| 40 |
|
| 41 |
```py
|
| 42 |
output = pipe(
|
|
@@ -49,7 +58,7 @@ output = pipe(
|
|
| 49 |
```
|
| 50 |
|
| 51 |
Sampling with PAG and CFG:
|
| 52 |
-
|
| 53 |
```py
|
| 54 |
output = pipe(
|
| 55 |
"the spirit of a tamagotchi wandering in the city of Vienna",
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Perturbed-Attention Guidance for SDXL
|
| 13 |
+
|
| 14 |
+
<div style="display:flex">
|
| 15 |
+
<video loop>
|
| 16 |
+
<source src="pag_sdxl.mp4" type="video/mp4">
|
| 17 |
+
</video>
|
| 18 |
+
<video loop>
|
| 19 |
+
<source src="pag_uncond.mp4" type="video/mp4">
|
| 20 |
+
</video>
|
| 21 |
+
</div>
|
| 22 |
+
|
| 23 |
|
| 24 |
[Project](https://ku-cvlab.github.io/Perturbed-Attention-Guidance/) / [arXiv](https://arxiv.org/abs/2403.17377) / [GitHub](https://github.com/KU-CVLAB/Perturbed-Attention-Guidance)
|
| 25 |
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
Unconditional sampling with PAG:
|
| 48 |
+

|
| 49 |
|
| 50 |
```py
|
| 51 |
output = pipe(
|
|
|
|
| 58 |
```
|
| 59 |
|
| 60 |
Sampling with PAG and CFG:
|
| 61 |
+

|
| 62 |
```py
|
| 63 |
output = pipe(
|
| 64 |
"the spirit of a tamagotchi wandering in the city of Vienna",
|