@@ -42,7 +42,6 @@ class DepthGradio:
42
42
}
43
43
44
44
upscalers = {
45
- "No upscaler" : NoUpscaler ,
46
45
"Real-ESRGAN" : Realesr ,
47
46
"Waifu2x" : Waifu2x ,
48
47
}
@@ -174,7 +173,7 @@ def launch(self,
174
173
value = list (self .upscalers .keys ())[0 ],
175
174
label = "Upscaler" , scale = 10
176
175
)
177
- self .fields .upscale = gradio .Button (value = "Upscale" , scale = 1 )
176
+ self .fields .upscale = gradio .Button (value = "π Upscale" , scale = 1 )
178
177
179
178
with gradio .Column (variant = "panel" ):
180
179
self .fields .depth = gradio .Image (scale = 1 ,
@@ -187,7 +186,7 @@ def launch(self,
187
186
value = list (self .estimators .keys ())[0 ],
188
187
label = "Depth Estimator" , scale = 10
189
188
)
190
- self .fields .estimate = gradio .Button (value = "Estimate" , scale = 1 )
189
+ self .fields .estimate = gradio .Button (value = "π Estimate" , scale = 1 )
191
190
192
191
with gradio .Column (variant = "panel" ):
193
192
self .fields .video = gradio .Video (scale = 1 ,
@@ -233,12 +232,12 @@ def launch(self,
233
232
with gradio .Row (variant = "panel" ):
234
233
self .fields .width = gradio .Number (label = "Width" ,
235
234
minimum = 1 , precision = 0 , scale = 10 , value = 1920 )
236
- self .fields .fit_height = gradio .Button (value = "Fit height" , scale = 1 )
235
+ self .fields .fit_height = gradio .Button (value = "β‘οΈ Fit height" , scale = 1 )
237
236
238
237
with gradio .Row (variant = "panel" ):
239
238
self .fields .height = gradio .Number (label = "Height" ,
240
239
minimum = 1 , precision = 0 , scale = 10 , value = 1080 )
241
- self .fields .fit_width = gradio .Button (value = "Fit width" , scale = 1 )
240
+ self .fields .fit_width = gradio .Button (value = "β¬
οΈ Fit width" , scale = 1 )
242
241
243
242
with gradio .Row (variant = "panel" ):
244
243
self .fields .ssaa = gradio .Slider (label = "Super sampling anti-aliasing" ,
@@ -255,10 +254,13 @@ def launch(self,
255
254
256
255
with gradio .Row (variant = "panel" ):
257
256
self .fields .time = gradio .Slider (label = "Duration (seconds)" ,
257
+ info = "How long the animation or its loop are" ,
258
258
minimum = 0 , maximum = 30 , step = 0.5 , value = 5 )
259
- self .fields .fps = gradio .Slider (label = "Framerate" ,
259
+ self .fields .fps = gradio .Slider (label = "Framerate (fps)" ,
260
+ info = "Defines the animation smoothness" ,
260
261
minimum = 1 , maximum = 120 , step = 1 , value = 60 )
261
- self .fields .loop = gradio .Slider (label = "Number of loops" ,
262
+ self .fields .loop = gradio .Slider (label = "Loop count" ,
263
+ info = "Repeat the final video this many times" ,
262
264
minimum = 1 , maximum = 10 , step = 1 , value = 1 )
263
265
264
266
# Update depth map and resolution on image change
0 commit comments