Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import PIL
|
|
10 |
base = "stabilityai/stable-diffusion-xl-base-1.0"
|
11 |
repo = "tianweiy/DMD2"
|
12 |
checkpoints = {
|
13 |
-
"1-Step" : ["
|
14 |
-
"4-Step" : ["
|
15 |
}
|
16 |
loaded = None
|
17 |
|
@@ -28,7 +28,7 @@ if torch.cuda.is_available():
|
|
28 |
|
29 |
|
30 |
# Function
|
31 |
-
@spaces.GPU(
|
32 |
def generate_image(prompt, ckpt):
|
33 |
global loaded
|
34 |
print(prompt, ckpt)
|
|
|
10 |
base = "stabilityai/stable-diffusion-xl-base-1.0"
|
11 |
repo = "tianweiy/DMD2"
|
12 |
checkpoints = {
|
13 |
+
"1-Step" : ["dmd2_sdxl_1step_unet.bin", 1],
|
14 |
+
"4-Step" : ["dmd2_sdxl_4step_unet.bin", 4],
|
15 |
}
|
16 |
loaded = None
|
17 |
|
|
|
28 |
|
29 |
|
30 |
# Function
|
31 |
+
@spaces.GPU()
|
32 |
def generate_image(prompt, ckpt):
|
33 |
global loaded
|
34 |
print(prompt, ckpt)
|