Spaces:
Starting
on
T4
Starting
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -488,18 +488,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 488 |
with gr.Column():
|
| 489 |
gr.Markdown("# SAM2 Video Predictor")
|
| 490 |
gr.Markdown("This is a simple demo for video segmentation with SAM2.")
|
| 491 |
-
gr.Markdown("""Instructions: (read the instructions)
|
| 492 |
|
| 493 |
-
1. Upload your video [MP4-24fps]
|
| 494 |
-
2. With 'include' point type selected, Click on the object to mask on first frame
|
| 495 |
-
3. Switch to 'exclude' point type if you want to specify an area to avoid
|
| 496 |
-
4. Get Mask !
|
| 497 |
-
5. Check Propagation every 15 frames
|
| 498 |
-
6. Add point on corresponding frame number if any mask needs to be refined
|
| 499 |
-
7. If propagation seems ok on every 15 frames, propagate with "render" to render final masked video !
|
| 500 |
-
8. Hit Reset button if you want to refresh and start again.
|
| 501 |
-
* Input video will be processed over 10 seconds only for demo purpose :)
|
| 502 |
-
""")
|
| 503 |
with gr.Row():
|
| 504 |
|
| 505 |
with gr.Column():
|
|
@@ -545,6 +534,19 @@ with gr.Blocks(css=css) as demo:
|
|
| 545 |
""")
|
| 546 |
|
| 547 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 548 |
|
| 549 |
output_propagated = gr.Gallery(label="Propagated Mask samples gallery", columns=4, visible=False)
|
| 550 |
output_video = gr.Video(visible=False)
|
|
|
|
| 488 |
with gr.Column():
|
| 489 |
gr.Markdown("# SAM2 Video Predictor")
|
| 490 |
gr.Markdown("This is a simple demo for video segmentation with SAM2.")
|
|
|
|
| 491 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 492 |
with gr.Row():
|
| 493 |
|
| 494 |
with gr.Column():
|
|
|
|
| 534 |
""")
|
| 535 |
|
| 536 |
with gr.Column():
|
| 537 |
+
|
| 538 |
+
gr.Markdown("""Instructions: (read the instructions)
|
| 539 |
+
|
| 540 |
+
1. Upload your video [MP4-24fps]
|
| 541 |
+
2. With 'include' point type selected, Click on the object to mask on first frame
|
| 542 |
+
3. Switch to 'exclude' point type if you want to specify an area to avoid
|
| 543 |
+
4. Get Mask !
|
| 544 |
+
5. Check Propagation every 15 frames
|
| 545 |
+
6. Add point on corresponding frame number if any mask needs to be refined
|
| 546 |
+
7. If propagation seems ok on every 15 frames, propagate with "render" to render final masked video !
|
| 547 |
+
8. Hit Reset button if you want to refresh and start again.
|
| 548 |
+
* Input video will be processed over 10 seconds only for demo purpose :)
|
| 549 |
+
""")
|
| 550 |
|
| 551 |
output_propagated = gr.Gallery(label="Propagated Mask samples gallery", columns=4, visible=False)
|
| 552 |
output_video = gr.Video(visible=False)
|