Spaces:
Runtime error
Runtime error
susunghong
commited on
Commit
•
d02d8ed
1
Parent(s):
a7a89c0
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ examples = [
|
|
19 |
' ',
|
20 |
50,
|
21 |
"Fix Seed",
|
22 |
-
|
23 |
7.5,
|
24 |
1.0,
|
25 |
],
|
@@ -27,7 +27,7 @@ examples = [
|
|
27 |
'.',
|
28 |
50,
|
29 |
"Fix Seed",
|
30 |
-
|
31 |
7.5,
|
32 |
1.0,
|
33 |
],
|
@@ -35,7 +35,7 @@ examples = [
|
|
35 |
'A cute Scottish Fold playing with a ball',
|
36 |
50,
|
37 |
"Fix Seed",
|
38 |
-
|
39 |
5.0,
|
40 |
1.0,
|
41 |
],
|
@@ -43,7 +43,7 @@ examples = [
|
|
43 |
'A person with a happy dog',
|
44 |
50,
|
45 |
"Fix Seed",
|
46 |
-
|
47 |
5.0,
|
48 |
1.0,
|
49 |
],
|
@@ -66,7 +66,7 @@ def main():
|
|
66 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
67 |
|
68 |
generator = torch.manual_seed(seed)
|
69 |
-
ori_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.
|
70 |
generator = torch.manual_seed(seed)
|
71 |
sag_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
72 |
return [ori_image, sag_image]
|
|
|
19 |
' ',
|
20 |
50,
|
21 |
"Fix Seed",
|
22 |
+
123,
|
23 |
7.5,
|
24 |
1.0,
|
25 |
],
|
|
|
27 |
'.',
|
28 |
50,
|
29 |
"Fix Seed",
|
30 |
+
456,
|
31 |
7.5,
|
32 |
1.0,
|
33 |
],
|
|
|
35 |
'A cute Scottish Fold playing with a ball',
|
36 |
50,
|
37 |
"Fix Seed",
|
38 |
+
789,
|
39 |
5.0,
|
40 |
1.0,
|
41 |
],
|
|
|
43 |
'A person with a happy dog',
|
44 |
50,
|
45 |
"Fix Seed",
|
46 |
+
901,
|
47 |
5.0,
|
48 |
1.0,
|
49 |
],
|
|
|
66 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
67 |
|
68 |
generator = torch.manual_seed(seed)
|
69 |
+
ori_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.0).images[0]
|
70 |
generator = torch.manual_seed(seed)
|
71 |
sag_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
72 |
return [ori_image, sag_image]
|