mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
api
This commit is contained in:
parent
c33f540d9b
commit
ae9ce94e88
@ -177,7 +177,7 @@ def run_postprocessing_webui(id_task, *args, **kwargs):
|
||||
|
||||
|
||||
def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_dir, show_extras_results, gfpgan_visibility, codeformer_visibility, codeformer_weight, upscaling_resize, upscaling_resize_w, upscaling_resize_h, upscaling_crop, extras_upscaler_1, extras_upscaler_2, extras_upscaler_2_visibility, upscale_first: bool, save_output: bool = True, max_side_length: int = 0):
|
||||
"""old handler for API"""
|
||||
# Handler for API (does not support video)
|
||||
|
||||
args = scripts.scripts_postproc.create_args_for_run(
|
||||
{
|
||||
@ -205,4 +205,4 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
|
||||
}
|
||||
)
|
||||
|
||||
return run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir, show_extras_results, *args, save_output=save_output)
|
||||
return run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir, show_extras_results, "", *args, save_output=save_output)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user