@@ -66,6 +66,8 @@ def main_ui_panel(is_depth_tab):
6666 inp -= 'depthmap_gen_row_3' , cur_option_root
6767 with gr .Row ():
6868 inp += go .CLIPDEPTH , gr .Checkbox (label = "Clip and renormalize DepthMap" )
69+ inp += go .CLIPDEPTH_MODE ,\
70+ gr .Dropdown (label = "Mode" , choices = ['Range' , 'Outliers' ], type = "value" , visible = False )
6971 with gr .Row (visible = False ) as clip_options_row_1 :
7072 inp += go .CLIPDEPTH_FAR , gr .Slider (minimum = 0 , maximum = 1 , step = 0.001 , label = 'Far clip' )
7173 inp += go .CLIPDEPTH_NEAR , gr .Slider (minimum = 0 , maximum = 1 , step = 0.001 , label = 'Near clip' )
@@ -179,6 +181,7 @@ def update_default_net_size(model_type):
179181 inp .add_rule (options_depend_on_output_depth_1 , 'visible-if' , go .DO_OUTPUT_DEPTH )
180182 inp .add_rule (go .OUTPUT_DEPTH_INVERT , 'visible-if' , go .DO_OUTPUT_DEPTH )
181183 inp .add_rule (go .OUTPUT_DEPTH_COMBINE_AXIS , 'visible-if' , go .OUTPUT_DEPTH_COMBINE )
184+ inp .add_rule (go .CLIPDEPTH_MODE , 'visible-if' , go .CLIPDEPTH )
182185 inp .add_rule (clip_options_row_1 , 'visible-if' , go .CLIPDEPTH )
183186
184187 inp [go .CLIPDEPTH_FAR ].change (
0 commit comments