add readme
Browse files349 unmodified lines35035135235335435535635751 unmodified lines409410411412413414415349 unmodified linesgr.Markdown('''<div style="text-align:center;"><span style="font-size:3em; font-weight:bold;">SAM2</span></div>''')51 unmodified linesvalue=0.0,)new_object_button = gr.Button(value="Add new object",interactive=True)track_for_video = gr.Button(349 unmodified lines35035135235335435535635735835936036136236336436536636736851 unmodified lines420421422423424425426349 unmodified linesgr.Markdown('''<div style="text-align:center;"><span style="font-size:3em; font-weight:bold;">SAM2 for Video Segmentation 🔥</span></div>This API supports using box (generated by scribble) and point prompts for video segmentation with SAM2.1. Upload video file2. Select mdoel size and downsample frame rate and run `Preprocess`3. Use `Stroke to Box Prompt` to draw box on the first frame or `Point Prompt` to click on the first frame.Note: The bounding rectangle of the stroke should be able to conver the segmentation target.4. Click `Segment` to get the segmentation result5. Click `Add New Object` to add new object6. Click `Start Tracking` to track objects in the video7. Click `Reset` to reset the app8. Download the video with segmentation results''')51 unmodified linesvalue=0.0,)new_object_button = gr.Button(value="Add New Object",interactive=True)track_for_video = gr.Button(
app.py+13-2