Spaces:
Running
on
Zero
Running
on
Zero
Update constants.py
Browse files- constants.py +72 -79
constants.py
CHANGED
@@ -17,7 +17,7 @@ DOWNLOAD_LORA = "https://huggingface.co/Leopain/color/resolve/main/Coloring_book
|
|
17 |
|
18 |
LOAD_DIFFUSERS_FORMAT_MODEL = [
|
19 |
'stabilityai/stable-diffusion-xl-base-1.0',
|
20 |
-
'Laxhar/noobai-XL-1.
|
21 |
'black-forest-labs/FLUX.1-dev',
|
22 |
'John6666/blue-pencil-flux1-v021-fp8-flux',
|
23 |
'John6666/wai-ani-flux-v10forfp8-fp8-flux',
|
@@ -31,6 +31,7 @@ LOAD_DIFFUSERS_FORMAT_MODEL = [
|
|
31 |
'terminusresearch/FluxBooru-v0.3',
|
32 |
'ostris/OpenFLUX.1',
|
33 |
'shuttleai/shuttle-3-diffusion',
|
|
|
34 |
'John6666/noobai-xl-nai-xl-epsilonpred10version-sdxl',
|
35 |
'Laxhar/noobai-XL-0.77',
|
36 |
'John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl',
|
@@ -43,6 +44,8 @@ LOAD_DIFFUSERS_FORMAT_MODEL = [
|
|
43 |
'John6666/haruki-mix-illustrious-v10-sdxl',
|
44 |
'John6666/noobreal-v10-sdxl',
|
45 |
'John6666/complicated-noobai-merge-vprediction-sdxl',
|
|
|
|
|
46 |
'Laxhar/noobai-XL-Vpred-0.6',
|
47 |
'John6666/noobai-xl-nai-xl-vpred05version-sdxl',
|
48 |
'John6666/noobai-fusion2-vpred-itercomp-v1-sdxl',
|
@@ -84,7 +87,7 @@ LOAD_DIFFUSERS_FORMAT_MODEL = [
|
|
84 |
'John6666/wai-ani-nsfw-ponyxl-v10-sdxl',
|
85 |
'John6666/wai-ani-nsfw-ponyxl-v9-sdxl',
|
86 |
'John6666/wai-real-mix-v11-sdxl',
|
87 |
-
'John6666/
|
88 |
'John6666/wai-c-v6-sdxl',
|
89 |
'John6666/iniverse-mix-xl-sfwnsfw-pony-guofeng-v43-sdxl',
|
90 |
'John6666/sifw-annihilation-xl-v2-sdxl',
|
@@ -155,79 +158,6 @@ DIRECTORY_EMBEDS = 'embedings'
|
|
155 |
CACHE_HF = "/home/user/.cache/huggingface/hub/"
|
156 |
STORAGE_ROOT = "/home/user/"
|
157 |
|
158 |
-
PREPROCESSOR_CONTROLNET = {
|
159 |
-
"openpose": [
|
160 |
-
"Openpose",
|
161 |
-
"None",
|
162 |
-
],
|
163 |
-
"scribble": [
|
164 |
-
"HED",
|
165 |
-
"PidiNet",
|
166 |
-
"None",
|
167 |
-
],
|
168 |
-
"softedge": [
|
169 |
-
"PidiNet",
|
170 |
-
"HED",
|
171 |
-
"HED safe",
|
172 |
-
"PidiNet safe",
|
173 |
-
"None",
|
174 |
-
],
|
175 |
-
"segmentation": [
|
176 |
-
"UPerNet",
|
177 |
-
"None",
|
178 |
-
],
|
179 |
-
"depth": [
|
180 |
-
"DPT",
|
181 |
-
"Midas",
|
182 |
-
"None",
|
183 |
-
],
|
184 |
-
"normalbae": [
|
185 |
-
"NormalBae",
|
186 |
-
"None",
|
187 |
-
],
|
188 |
-
"lineart": [
|
189 |
-
"Lineart",
|
190 |
-
"Lineart coarse",
|
191 |
-
"Lineart (anime)",
|
192 |
-
"None",
|
193 |
-
"None (anime)",
|
194 |
-
],
|
195 |
-
"lineart_anime": [
|
196 |
-
"Lineart",
|
197 |
-
"Lineart coarse",
|
198 |
-
"Lineart (anime)",
|
199 |
-
"None",
|
200 |
-
"None (anime)",
|
201 |
-
],
|
202 |
-
"shuffle": [
|
203 |
-
"ContentShuffle",
|
204 |
-
"None",
|
205 |
-
],
|
206 |
-
"canny": [
|
207 |
-
"Canny",
|
208 |
-
"None",
|
209 |
-
],
|
210 |
-
"mlsd": [
|
211 |
-
"MLSD",
|
212 |
-
"None",
|
213 |
-
],
|
214 |
-
"ip2p": [
|
215 |
-
"ip2p"
|
216 |
-
],
|
217 |
-
"recolor": [
|
218 |
-
"Recolor luminance",
|
219 |
-
"Recolor intensity",
|
220 |
-
"None",
|
221 |
-
],
|
222 |
-
"tile": [
|
223 |
-
"Mild Blur",
|
224 |
-
"Moderate Blur",
|
225 |
-
"Heavy Blur",
|
226 |
-
"None",
|
227 |
-
],
|
228 |
-
|
229 |
-
}
|
230 |
-
|
231 |
TASK_STABLEPY = {
|
232 |
'txt2img': 'txt2img',
|
233 |
'img2img': 'img2img',
|
@@ -284,9 +214,72 @@ UPSCALER_DICT_GUI = {
|
|
284 |
|
285 |
UPSCALER_KEYS = list(UPSCALER_DICT_GUI.keys())
|
286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
PROMPT_W_OPTIONS = [
|
288 |
("Compel format: (word)weight", "Compel"),
|
289 |
("Classic format: (word:weight)", "Classic"),
|
|
|
290 |
("Classic-original format: (word:weight)", "Classic-original"),
|
291 |
("Classic-no_norm format: (word:weight)", "Classic-no_norm"),
|
292 |
("Classic-ignore", "Classic-ignore"),
|
@@ -371,7 +364,7 @@ EXAMPLES_GUI = [
|
|
371 |
1.0, # cn scale
|
372 |
0.0, # cn start
|
373 |
1.0, # cn end
|
374 |
-
"Classic",
|
375 |
"Nearest",
|
376 |
45,
|
377 |
False,
|
@@ -384,7 +377,7 @@ EXAMPLES_GUI = [
|
|
384 |
-1,
|
385 |
"None",
|
386 |
0.33,
|
387 |
-
"
|
388 |
1152,
|
389 |
896,
|
390 |
"black-forest-labs/FLUX.1-dev",
|
@@ -408,7 +401,7 @@ EXAMPLES_GUI = [
|
|
408 |
-1,
|
409 |
"None",
|
410 |
0.33,
|
411 |
-
"DPM++ 2M SDE
|
412 |
1024,
|
413 |
1024,
|
414 |
"John6666/epicrealism-xl-v10kiss2-sdxl",
|
@@ -491,7 +484,7 @@ EXAMPLES_GUI = [
|
|
491 |
1.0, # cn scale
|
492 |
0.0, # cn start
|
493 |
0.9, # cn end
|
494 |
-
"
|
495 |
"Latent (antialiased)",
|
496 |
46,
|
497 |
False,
|
|
|
17 |
|
18 |
LOAD_DIFFUSERS_FORMAT_MODEL = [
|
19 |
'stabilityai/stable-diffusion-xl-base-1.0',
|
20 |
+
'Laxhar/noobai-XL-1.1',
|
21 |
'black-forest-labs/FLUX.1-dev',
|
22 |
'John6666/blue-pencil-flux1-v021-fp8-flux',
|
23 |
'John6666/wai-ani-flux-v10forfp8-fp8-flux',
|
|
|
31 |
'terminusresearch/FluxBooru-v0.3',
|
32 |
'ostris/OpenFLUX.1',
|
33 |
'shuttleai/shuttle-3-diffusion',
|
34 |
+
'Laxhar/noobai-XL-1.0',
|
35 |
'John6666/noobai-xl-nai-xl-epsilonpred10version-sdxl',
|
36 |
'Laxhar/noobai-XL-0.77',
|
37 |
'John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl',
|
|
|
44 |
'John6666/haruki-mix-illustrious-v10-sdxl',
|
45 |
'John6666/noobreal-v10-sdxl',
|
46 |
'John6666/complicated-noobai-merge-vprediction-sdxl',
|
47 |
+
'Laxhar/noobai-XL-Vpred-0.65s',
|
48 |
+
'Laxhar/noobai-XL-Vpred-0.65',
|
49 |
'Laxhar/noobai-XL-Vpred-0.6',
|
50 |
'John6666/noobai-xl-nai-xl-vpred05version-sdxl',
|
51 |
'John6666/noobai-fusion2-vpred-itercomp-v1-sdxl',
|
|
|
87 |
'John6666/wai-ani-nsfw-ponyxl-v10-sdxl',
|
88 |
'John6666/wai-ani-nsfw-ponyxl-v9-sdxl',
|
89 |
'John6666/wai-real-mix-v11-sdxl',
|
90 |
+
'John6666/wai-shuffle-pdxl-v2-sdxl',
|
91 |
'John6666/wai-c-v6-sdxl',
|
92 |
'John6666/iniverse-mix-xl-sfwnsfw-pony-guofeng-v43-sdxl',
|
93 |
'John6666/sifw-annihilation-xl-v2-sdxl',
|
|
|
158 |
CACHE_HF = "/home/user/.cache/huggingface/hub/"
|
159 |
STORAGE_ROOT = "/home/user/"
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
TASK_STABLEPY = {
|
162 |
'txt2img': 'txt2img',
|
163 |
'img2img': 'img2img',
|
|
|
214 |
|
215 |
UPSCALER_KEYS = list(UPSCALER_DICT_GUI.keys())
|
216 |
|
217 |
+
DIFFUSERS_CONTROLNET_MODEL = [
|
218 |
+
"Automatic",
|
219 |
+
|
220 |
+
"xinsir/controlnet-union-sdxl-1.0",
|
221 |
+
"xinsir/anime-painter",
|
222 |
+
"Eugeoter/noob-sdxl-controlnet-canny",
|
223 |
+
"Eugeoter/noob-sdxl-controlnet-lineart_anime",
|
224 |
+
"Eugeoter/noob-sdxl-controlnet-depth",
|
225 |
+
"Eugeoter/noob-sdxl-controlnet-normal",
|
226 |
+
"Eugeoter/noob-sdxl-controlnet-softedge_hed",
|
227 |
+
"Eugeoter/noob-sdxl-controlnet-scribble_pidinet",
|
228 |
+
"Eugeoter/noob-sdxl-controlnet-scribble_hed",
|
229 |
+
"Eugeoter/noob-sdxl-controlnet-manga_line",
|
230 |
+
"Eugeoter/noob-sdxl-controlnet-lineart_realistic",
|
231 |
+
"Eugeoter/noob-sdxl-controlnet-depth_midas-v1-1",
|
232 |
+
"dimitribarbot/controlnet-openpose-sdxl-1.0-safetensors",
|
233 |
+
"r3gm/controlnet-openpose-sdxl-1.0-fp16",
|
234 |
+
"r3gm/controlnet-canny-scribble-integrated-sdxl-v2-fp16",
|
235 |
+
"r3gm/controlnet-union-sdxl-1.0-fp16",
|
236 |
+
"r3gm/controlnet-lineart-anime-sdxl-fp16",
|
237 |
+
"r3gm/control_v1p_sdxl_qrcode_monster_fp16",
|
238 |
+
"r3gm/controlnet-tile-sdxl-1.0-fp16",
|
239 |
+
"r3gm/controlnet-recolor-sdxl-fp16",
|
240 |
+
"r3gm/controlnet-openpose-twins-sdxl-1.0-fp16",
|
241 |
+
"r3gm/controlnet-qr-pattern-sdxl-fp16",
|
242 |
+
"brad-twinkl/controlnet-union-sdxl-1.0-promax",
|
243 |
+
"Yakonrus/SDXL_Controlnet_Tile_Realistic_v2",
|
244 |
+
"TheMistoAI/MistoLine",
|
245 |
+
"briaai/BRIA-2.3-ControlNet-Recoloring",
|
246 |
+
"briaai/BRIA-2.3-ControlNet-Canny",
|
247 |
+
|
248 |
+
"lllyasviel/control_v11p_sd15_openpose",
|
249 |
+
"lllyasviel/control_v11p_sd15_canny",
|
250 |
+
"lllyasviel/control_v11p_sd15_mlsd",
|
251 |
+
"lllyasviel/control_v11p_sd15_scribble",
|
252 |
+
"lllyasviel/control_v11p_sd15_softedge",
|
253 |
+
"lllyasviel/control_v11p_sd15_seg",
|
254 |
+
"lllyasviel/control_v11f1p_sd15_depth",
|
255 |
+
"lllyasviel/control_v11p_sd15_normalbae",
|
256 |
+
"lllyasviel/control_v11p_sd15_lineart",
|
257 |
+
"lllyasviel/control_v11p_sd15s2_lineart_anime",
|
258 |
+
"lllyasviel/control_v11e_sd15_shuffle",
|
259 |
+
"lllyasviel/control_v11e_sd15_ip2p",
|
260 |
+
"lllyasviel/control_v11p_sd15_inpaint",
|
261 |
+
"monster-labs/control_v1p_sd15_qrcode_monster",
|
262 |
+
"lllyasviel/control_v11f1e_sd15_tile",
|
263 |
+
"latentcat/control_v1p_sd15_brightness",
|
264 |
+
"yuanqiuye/qrcode_controlnet_v3",
|
265 |
+
|
266 |
+
"Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro",
|
267 |
+
# "Shakker-Labs/FLUX.1-dev-ControlNet-Pose",
|
268 |
+
# "Shakker-Labs/FLUX.1-dev-ControlNet-Depth",
|
269 |
+
# "jasperai/Flux.1-dev-Controlnet-Upscaler",
|
270 |
+
# "jasperai/Flux.1-dev-Controlnet-Depth",
|
271 |
+
# "jasperai/Flux.1-dev-Controlnet-Surface-Normals",
|
272 |
+
# "XLabs-AI/flux-controlnet-canny-diffusers",
|
273 |
+
# "XLabs-AI/flux-controlnet-hed-diffusers",
|
274 |
+
# "XLabs-AI/flux-controlnet-depth-diffusers",
|
275 |
+
# "InstantX/FLUX.1-dev-Controlnet-Union",
|
276 |
+
# "InstantX/FLUX.1-dev-Controlnet-Canny",
|
277 |
+
]
|
278 |
+
|
279 |
PROMPT_W_OPTIONS = [
|
280 |
("Compel format: (word)weight", "Compel"),
|
281 |
("Classic format: (word:weight)", "Classic"),
|
282 |
+
("Classic-sd_embed format: (word:weight)", "Classic-sd_embed"),
|
283 |
("Classic-original format: (word:weight)", "Classic-original"),
|
284 |
("Classic-no_norm format: (word:weight)", "Classic-no_norm"),
|
285 |
("Classic-ignore", "Classic-ignore"),
|
|
|
364 |
1.0, # cn scale
|
365 |
0.0, # cn start
|
366 |
1.0, # cn end
|
367 |
+
"Classic-no_norm",
|
368 |
"Nearest",
|
369 |
45,
|
370 |
False,
|
|
|
377 |
-1,
|
378 |
"None",
|
379 |
0.33,
|
380 |
+
"FlowMatch Euler",
|
381 |
1152,
|
382 |
896,
|
383 |
"black-forest-labs/FLUX.1-dev",
|
|
|
401 |
-1,
|
402 |
"None",
|
403 |
0.33,
|
404 |
+
"DPM++ 2M SDE Ef",
|
405 |
1024,
|
406 |
1024,
|
407 |
"John6666/epicrealism-xl-v10kiss2-sdxl",
|
|
|
484 |
1.0, # cn scale
|
485 |
0.0, # cn start
|
486 |
0.9, # cn end
|
487 |
+
"Classic-original",
|
488 |
"Latent (antialiased)",
|
489 |
46,
|
490 |
False,
|