Spaces:
Runtime error
Runtime error
Change the parameters for lineart model
Browse files- app_base.py +16 -0
app_base.py
CHANGED
@@ -52,6 +52,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
52 |
image_url: str,
|
53 |
prompt: str,
|
54 |
adapter_name: str,
|
|
|
|
|
55 |
seed: int,
|
56 |
apply_preprocess: bool,
|
57 |
) -> list[PIL.Image.Image]:
|
@@ -61,6 +63,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
61 |
prompt=prompt,
|
62 |
negative_prompt="",
|
63 |
adapter_name=adapter_name,
|
|
|
|
|
64 |
seed=seed,
|
65 |
apply_preprocess=apply_preprocess,
|
66 |
)
|
@@ -70,6 +74,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
70 |
"assets/org_canny.jpg",
|
71 |
"Mystical fairy in real, magic, 4k picture, high quality",
|
72 |
"canny",
|
|
|
|
|
73 |
0,
|
74 |
True,
|
75 |
],
|
@@ -77,6 +83,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
77 |
"assets/org_sketch.png",
|
78 |
"a robot, mount fuji in the background, 4k photo, highly detailed",
|
79 |
"sketch",
|
|
|
|
|
80 |
0,
|
81 |
True,
|
82 |
],
|
@@ -84,6 +92,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
84 |
"assets/org_lin.jpg",
|
85 |
"Ice dragon roar, 4k photo",
|
86 |
"lineart",
|
|
|
|
|
87 |
0,
|
88 |
True,
|
89 |
],
|
@@ -91,6 +101,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
91 |
"assets/org_mid.jpg",
|
92 |
"A photo of a room, 4k photo, highly detailed",
|
93 |
"depth-midas",
|
|
|
|
|
94 |
0,
|
95 |
True,
|
96 |
],
|
@@ -98,6 +110,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
98 |
"assets/org_zoe.jpg",
|
99 |
"A photo of a orchid, 4k photo, highly detailed",
|
100 |
"depth-zoe",
|
|
|
|
|
101 |
0,
|
102 |
True,
|
103 |
],
|
@@ -161,6 +175,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
161 |
image,
|
162 |
prompt,
|
163 |
adapter_name,
|
|
|
|
|
164 |
seed,
|
165 |
apply_preprocess,
|
166 |
],
|
|
|
52 |
image_url: str,
|
53 |
prompt: str,
|
54 |
adapter_name: str,
|
55 |
+
guidance_scale: float,
|
56 |
+
adapter_conditioning_scale: float,
|
57 |
seed: int,
|
58 |
apply_preprocess: bool,
|
59 |
) -> list[PIL.Image.Image]:
|
|
|
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,
|
69 |
apply_preprocess=apply_preprocess,
|
70 |
)
|
|
|
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,
|
80 |
True,
|
81 |
],
|
|
|
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,
|
89 |
True,
|
90 |
],
|
|
|
92 |
"assets/org_lin.jpg",
|
93 |
"Ice dragon roar, 4k photo",
|
94 |
"lineart",
|
95 |
+
7.5,
|
96 |
+
0.8,
|
97 |
0,
|
98 |
True,
|
99 |
],
|
|
|
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,
|
107 |
True,
|
108 |
],
|
|
|
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,
|
116 |
True,
|
117 |
],
|
|
|
175 |
image,
|
176 |
prompt,
|
177 |
adapter_name,
|
178 |
+
guidance_scale,
|
179 |
+
adapter_conditioning_scale,
|
180 |
seed,
|
181 |
apply_preprocess,
|
182 |
],
|