@@ -49,8 +49,8 @@ def main_ui_panel(is_depth_tab):
49
49
with gr .Group (visible = False ) as options_depend_on_boost :
50
50
inp += 'match_size' , gr .Checkbox (label = "Match net size to input size" , value = False )
51
51
with gr .Row (visible = False ) as options_depend_on_match_size :
52
- inp += 'net_width' , gr .Slider (minimum = 64 , maximum = 2048 , step = 64 , label = 'Net width' , value = 512 )
53
- inp += 'net_height' , gr .Slider (minimum = 64 , maximum = 2048 , step = 64 , label = 'Net height' , value = 512 )
52
+ inp += 'net_width' , gr .Slider (minimum = 64 , maximum = 2048 , step = 64 , label = 'Net width' , value = 448 )
53
+ inp += 'net_height' , gr .Slider (minimum = 64 , maximum = 2048 , step = 64 , label = 'Net height' , value = 448 )
54
54
55
55
with gr .Group ():
56
56
with gr .Row ():
@@ -104,18 +104,20 @@ def main_ui_panel(is_depth_tab):
104
104
with gr .Row ():
105
105
inp += "gen_mesh" , gr .Checkbox (
106
106
label = "Generate simple 3D mesh" , value = False , visible = True )
107
- with gr .Row (visible = False ) as mesh_options_row_0 :
108
- gr .Label (value = "Generates fast, accurate only with ZoeDepth models and no boost, no custom maps" )
109
- inp += "mesh_occlude" , gr .Checkbox (label = "Remove occluded edges" , value = True , visible = True )
110
- inp += "mesh_spherical" , gr .Checkbox (label = "Equirectangular projection" , value = False , visible = True )
107
+ with gr .Group (visible = False ) as mesh_options :
108
+ with gr .Row ():
109
+ gr .HTML (value = "Generates fast, accurate only with ZoeDepth models and no boost, no custom maps" )
110
+ with gr .Row ():
111
+ inp += "mesh_occlude" , gr .Checkbox (label = "Remove occluded edges" , value = True , visible = True )
112
+ inp += "mesh_spherical" , gr .Checkbox (label = "Equirectangular projection" , value = False , visible = True )
111
113
112
114
if is_depth_tab :
113
115
with gr .Group ():
114
116
with gr .Row ():
115
117
inp += "inpaint" , gr .Checkbox (
116
118
label = "Generate 3D inpainted mesh" , value = False )
117
119
with gr .Group (visible = False ) as inpaint_options_row_0 :
118
- gr .Label ("Generation is sloooow, required for generating videos" )
120
+ gr .HTML ("Generation is sloooow, required for generating videos" )
119
121
inp += "inpaint_vids" , gr .Checkbox (
120
122
label = "Generate 4 demo videos with 3D inpainted mesh." , value = False )
121
123
gr .HTML ("More options for generating video can be found in the Generate video tab" )
@@ -199,9 +201,9 @@ def stereo_options_visibility(v):
199
201
)
200
202
201
203
inp ['gen_mesh' ].change (
202
- fn = lambda v : mesh_options_row_0 .update (visible = v ),
204
+ fn = lambda v : mesh_options .update (visible = v ),
203
205
inputs = [inp ['gen_mesh' ]],
204
- outputs = [mesh_options_row_0 ]
206
+ outputs = [mesh_options ]
205
207
)
206
208
207
209
def inpaint_options_visibility (v ):
0 commit comments