"DAT_tile_overlap":OptionInfo(8,"Tile overlap for DAT upscalers.",gr.Slider,{"minimum":0,"maximum":48,"step":1}).info("Low values = visible seam"),
"DAT_tile_overlap":OptionInfo(8,"Tile overlap for DAT upscalers.",gr.Slider,{"minimum":0,"maximum":48,"step":1}).info("Low values = visible seam"),
"upscaler_for_img2img":OptionInfo(None,"Upscaler for img2img",gr.Dropdown,lambda:{"choices":[x.nameforxinshared.sd_upscalers]}),
"upscaler_for_img2img":OptionInfo(None,"Upscaler for img2img",gr.Dropdown,lambda:{"choices":[x.nameforxinshared.sd_upscalers]}),
"set_scale_by_when_changing_upscaler":OptionInfo(False,"Automatically set the Scale by factor based on the name of the selected Upscaler."),
"set_scale_by_when_changing_upscaler":OptionInfo(False,"Automatically set the Scale by factor based on the name of the selected Upscaler."),
"show_limit_target_resolution_in_extras_upscale":OptionInfo(False,'Show "Limit target resolution" slider in "Upscale" extras script. Useful for batches where can be big images.').needs_reload_ui(),
tooltip="0 = no limit. Limit maximal target resolution by the biggest demension. Useful for batches where can be big images.")
withgr.Column(scale=1):
else:
max_side_length=gr.Number(label="Max side length",value=0,elem_id="extras_upscale_max_side_length",tooltip="If any of two sides of the image ends up larger than specified, will downscale it to fit. 0 = no limit.")