fixes, 0.5 for upscale factor slider steps
parent
842c5b8b4b
commit
422e140b10
|
|
@ -191,7 +191,7 @@ def create_zoom(
|
||||||
upscaler_name,
|
upscaler_name,
|
||||||
upscale_by,
|
upscale_by,
|
||||||
inpainting_denoising_strength=1,
|
inpainting_denoising_strength=1,
|
||||||
inpainting_full_res=False,
|
inpainting_full_res=0,
|
||||||
inpainting_padding=0,
|
inpainting_padding=0,
|
||||||
progress=None,
|
progress=None,
|
||||||
):
|
):
|
||||||
|
|
@ -211,11 +211,8 @@ def create_zoom(
|
||||||
video_zoom_mode,
|
video_zoom_mode,
|
||||||
video_start_frame_dupe_amount,
|
video_start_frame_dupe_amount,
|
||||||
video_last_frame_dupe_amount,
|
video_last_frame_dupe_amount,
|
||||||
inpainting_denoising_strength,
|
|
||||||
inpainting_mask_blur,
|
inpainting_mask_blur,
|
||||||
inpainting_fill_mode,
|
inpainting_fill_mode,
|
||||||
inpainting_full_res,
|
|
||||||
inpainting_padding,
|
|
||||||
zoom_speed,
|
zoom_speed,
|
||||||
seed,
|
seed,
|
||||||
outputsizeW,
|
outputsizeW,
|
||||||
|
|
@ -224,6 +221,9 @@ def create_zoom(
|
||||||
upscale_do,
|
upscale_do,
|
||||||
upscaler_name,
|
upscaler_name,
|
||||||
upscale_by,
|
upscale_by,
|
||||||
|
inpainting_denoising_strength,
|
||||||
|
inpainting_full_res,
|
||||||
|
inpainting_padding,
|
||||||
progress,
|
progress,
|
||||||
)
|
)
|
||||||
return result
|
return result
|
||||||
|
|
@ -312,10 +312,10 @@ def create_zoom_single(
|
||||||
upscale_do,
|
upscale_do,
|
||||||
upscaler_name,
|
upscaler_name,
|
||||||
upscale_by,
|
upscale_by,
|
||||||
inpainting_denoising_strength=1,
|
inpainting_denoising_strength,
|
||||||
inpainting_full_res=False,
|
inpainting_full_res,
|
||||||
inpainting_padding=0,
|
inpainting_padding,
|
||||||
progress=None,
|
progress,
|
||||||
):
|
):
|
||||||
# try:
|
# try:
|
||||||
# if gr.Progress() is not None:
|
# if gr.Progress() is not None:
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,11 @@ def on_ui_tabs():
|
||||||
value=shared.sd_upscalers[0].name,
|
value=shared.sd_upscalers[0].name,
|
||||||
)
|
)
|
||||||
upscale_by = gr.Slider(
|
upscale_by = gr.Slider(
|
||||||
label="Upscale by factor", minimum=1, maximum=8, value=1
|
label="Upscale by factor",
|
||||||
|
minimum=1,
|
||||||
|
maximum=8,
|
||||||
|
step=0.5,
|
||||||
|
value=2,
|
||||||
)
|
)
|
||||||
with gr.Accordion("Help", open=False):
|
with gr.Accordion("Help", open=False):
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue