1
0
Fork 0

feat(api): read thumbnail parameter from request

This commit is contained in:
Sean Sube 2024-01-28 15:20:31 -06:00
parent 7c6ae6a094
commit 83e5c99cf7
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
3 changed files with 8 additions and 0 deletions

View File

@ -118,6 +118,7 @@ def build_params(
get_config_value("steps", "min"),
)
tiled_vae = get_boolean(data, "tiled_vae", get_config_value("tiled_vae"))
thumbnail = get_boolean(data, "thumbnail", get_config_value("thumbnail"))
unet_overlap = get_and_clamp_float(
data,
"unet_overlap",
@ -169,6 +170,7 @@ def build_params(
unet_tile=unet_tile,
vae_overlap=vae_overlap,
vae_tile=vae_tile,
thumbnail=thumbnail,
)
return params

View File

@ -207,6 +207,9 @@
"spiral"
]
},
"thumbnail": {
"default": true
},
"top": {
"default": 0,
"min": 0,

View File

@ -203,6 +203,9 @@
"spiral"
]
},
"thumbnail": {
"default": true
},
"top": {
"default": 0,
"min": 0,