Spaces:
Running
Running
Update the style for lineart example
Browse files- app_base.py +8 -0
app_base.py
CHANGED
@@ -52,6 +52,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
52 |
image_url: str,
|
53 |
prompt: str,
|
54 |
adapter_name: str,
|
|
|
55 |
guidance_scale: float,
|
56 |
adapter_conditioning_scale: float,
|
57 |
seed: int,
|
@@ -63,6 +64,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
63 |
prompt=prompt,
|
64 |
negative_prompt="",
|
65 |
adapter_name=adapter_name,
|
|
|
66 |
guidance_scale=guidance_scale,
|
67 |
adapter_conditioning_scale=adapter_conditioning_scale,
|
68 |
seed=seed,
|
@@ -74,6 +76,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
74 |
"assets/org_canny.jpg",
|
75 |
"Mystical fairy in real, magic, 4k picture, high quality",
|
76 |
"canny",
|
|
|
77 |
5.0,
|
78 |
1.0,
|
79 |
0,
|
@@ -83,6 +86,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
83 |
"assets/org_sketch.png",
|
84 |
"a robot, mount fuji in the background, 4k photo, highly detailed",
|
85 |
"sketch",
|
|
|
86 |
5.0,
|
87 |
1.0,
|
88 |
0,
|
@@ -92,6 +96,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
92 |
"assets/org_lin.jpg",
|
93 |
"Ice dragon roar, 4k photo",
|
94 |
"lineart",
|
|
|
95 |
7.5,
|
96 |
0.8,
|
97 |
0,
|
@@ -101,6 +106,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
101 |
"assets/org_mid.jpg",
|
102 |
"A photo of a room, 4k photo, highly detailed",
|
103 |
"depth-midas",
|
|
|
104 |
5.0,
|
105 |
1.0,
|
106 |
0,
|
@@ -110,6 +116,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
110 |
"assets/org_zoe.jpg",
|
111 |
"A photo of a orchid, 4k photo, highly detailed",
|
112 |
"depth-zoe",
|
|
|
113 |
5.0,
|
114 |
1.0,
|
115 |
0,
|
@@ -175,6 +182,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
175 |
image,
|
176 |
prompt,
|
177 |
adapter_name,
|
|
|
178 |
guidance_scale,
|
179 |
adapter_conditioning_scale,
|
180 |
seed,
|
|
|
52 |
image_url: str,
|
53 |
prompt: str,
|
54 |
adapter_name: str,
|
55 |
+
style_name: str,
|
56 |
guidance_scale: float,
|
57 |
adapter_conditioning_scale: float,
|
58 |
seed: int,
|
|
|
64 |
prompt=prompt,
|
65 |
negative_prompt="",
|
66 |
adapter_name=adapter_name,
|
67 |
+
style_name=style_name,
|
68 |
guidance_scale=guidance_scale,
|
69 |
adapter_conditioning_scale=adapter_conditioning_scale,
|
70 |
seed=seed,
|
|
|
76 |
"assets/org_canny.jpg",
|
77 |
"Mystical fairy in real, magic, 4k picture, high quality",
|
78 |
"canny",
|
79 |
+
"Photographic",
|
80 |
5.0,
|
81 |
1.0,
|
82 |
0,
|
|
|
86 |
"assets/org_sketch.png",
|
87 |
"a robot, mount fuji in the background, 4k photo, highly detailed",
|
88 |
"sketch",
|
89 |
+
"Photographic",
|
90 |
5.0,
|
91 |
1.0,
|
92 |
0,
|
|
|
96 |
"assets/org_lin.jpg",
|
97 |
"Ice dragon roar, 4k photo",
|
98 |
"lineart",
|
99 |
+
"Cinematic",
|
100 |
7.5,
|
101 |
0.8,
|
102 |
0,
|
|
|
106 |
"assets/org_mid.jpg",
|
107 |
"A photo of a room, 4k photo, highly detailed",
|
108 |
"depth-midas",
|
109 |
+
"Photographic",
|
110 |
5.0,
|
111 |
1.0,
|
112 |
0,
|
|
|
116 |
"assets/org_zoe.jpg",
|
117 |
"A photo of a orchid, 4k photo, highly detailed",
|
118 |
"depth-zoe",
|
119 |
+
"Photographic",
|
120 |
5.0,
|
121 |
1.0,
|
122 |
0,
|
|
|
182 |
image,
|
183 |
prompt,
|
184 |
adapter_name,
|
185 |
+
style,
|
186 |
guidance_scale,
|
187 |
adapter_conditioning_scale,
|
188 |
seed,
|