aleafy commited on
Commit
8040313
·
1 Parent(s): ee8c8f9
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -384,13 +384,13 @@ with block:
384
  input_fg = gr.Video(label="Foreground Video", height=380, width=420, visible=True)
385
  input_bg = gr.Video(label="Background Video", height=380, width=420, visible=True)
386
 
387
- segment_button = gr.Button(value="Video Segmentation")
388
- with gr.Accordion("Segmentation Options", open=False):
389
- # 如果用户不使用 point_prompt,而是直接提供坐标,则使用 x, y
390
- with gr.Row():
391
- x_coord = gr.Slider(label="X Coordinate (Point Prompt Ratio)", minimum=0.0, maximum=1.0, value=0.5, step=0.01)
392
- y_coord = gr.Slider(label="Y Coordinate (Point Prompt Ratio)", minimum=0.0, maximum=1.0, value=0.5, step=0.01)
393
-
394
 
395
  fg_gallery = gr.Gallery(height=150, object_fit='contain', label='Foreground Quick List', value=db_examples.fg_samples, columns=5, allow_preview=False)
396
  bg_gallery = gr.Gallery(height=450, object_fit='contain', label='Background Quick List', value=db_examples.bg_samples, columns=5, allow_preview=False)
@@ -423,7 +423,7 @@ with block:
423
  type='value')
424
 
425
  example_prompts = gr.Dataset(samples=quick_prompts, label='Prompt Quick List', components=[prompt])
426
- relight_button = gr.Button(value="Relight")
427
 
428
  # prompt = gr.Textbox(label="Prompt")
429
  # bg_source = gr.Radio(choices=[e.value for e in BGSource],
 
384
  input_fg = gr.Video(label="Foreground Video", height=380, width=420, visible=True)
385
  input_bg = gr.Video(label="Background Video", height=380, width=420, visible=True)
386
 
387
+ # segment_button = gr.Button(value="Video Segmentation")
388
+ # with gr.Accordion("Segmentation Options", open=False):
389
+ # # 如果用户不使用 point_prompt,而是直接提供坐标,则使用 x, y
390
+ # with gr.Row():
391
+ # x_coord = gr.Slider(label="X Coordinate (Point Prompt Ratio)", minimum=0.0, maximum=1.0, value=0.5, step=0.01)
392
+ # y_coord = gr.Slider(label="Y Coordinate (Point Prompt Ratio)", minimum=0.0, maximum=1.0, value=0.5, step=0.01)
393
+ relight_button = gr.Button(value="Relight")
394
 
395
  fg_gallery = gr.Gallery(height=150, object_fit='contain', label='Foreground Quick List', value=db_examples.fg_samples, columns=5, allow_preview=False)
396
  bg_gallery = gr.Gallery(height=450, object_fit='contain', label='Background Quick List', value=db_examples.bg_samples, columns=5, allow_preview=False)
 
423
  type='value')
424
 
425
  example_prompts = gr.Dataset(samples=quick_prompts, label='Prompt Quick List', components=[prompt])
426
+ # relight_button = gr.Button(value="Relight")
427
 
428
  # prompt = gr.Textbox(label="Prompt")
429
  # bg_source = gr.Radio(choices=[e.value for e in BGSource],