wooyeolbaek
commited on
Commit
•
138ee92
1
Parent(s):
2934e69
Add SDXL
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
-
from diffusers import
|
4 |
from utils import (
|
5 |
attn_maps,
|
6 |
cross_attn_init,
|
@@ -13,9 +13,9 @@ from utils import (
|
|
13 |
|
14 |
cross_attn_init()
|
15 |
|
16 |
-
pipe =
|
17 |
-
"stabilityai/stable-diffusion-
|
18 |
-
torch_dtype=torch.
|
19 |
)
|
20 |
|
21 |
pipe = init_pipeline(pipe)
|
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
+
from diffusers import DiffusionPipeline
|
4 |
from utils import (
|
5 |
attn_maps,
|
6 |
cross_attn_init,
|
|
|
13 |
|
14 |
cross_attn_init()
|
15 |
|
16 |
+
pipe = DiffusionPipeline.from_pretrained(
|
17 |
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
18 |
+
torch_dtype=torch.float16,
|
19 |
)
|
20 |
|
21 |
pipe = init_pipeline(pipe)
|