Skip to content

Commit

Permalink
docs: Fix readme for SAM2 videos
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq authored Sep 4, 2024
1 parent 38974da commit de8549c
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions label_studio_ml/examples/segment_anything_2_video/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,16 @@ Note that if you're running in a cloud server, you'll need to run on an exposed
For your project, you can use any labeling config with video properties. Here's a basic one to get you started!

```xml
<View>
<Labels name="videoLabels" toName="video" allowEmpty="true">



<Label value="Player" background="#11A39E"/><Label value="Ball" background="#D4380D"/></Labels>

<!-- Please specify FPS carefully, it will be used for all project videos -->
<Video name="video" value="$video" framerate="25.0"/>
<VideoRectangle name="box" toName="video" smart="true"/>
</View><!--{
"video": "/static/samples/opossum_snow.mp4"
}-->
<View>
<Labels name="videoLabels" toName="video" allowEmpty="true">
<Label value="Player" background="#11A39E"/>
<Label value="Ball" background="#D4380D"/>
</Labels>

<!-- Please specify FPS carefully, it will be used for all project videos -->
<Video name="video" value="$video" framerate="25.0"/>
<VideoRectangle name="box" toName="video" smart="true"/>
</View>
```

## Known limitations
Expand All @@ -82,4 +79,4 @@ If you want to contribute to this repository to help with some of these limitati

## Customization

The ML backend can be customized by adding your own models and logic inside the `./segment_anything_2_video` directory.
The ML backend can be customized by adding your own models and logic inside the `./segment_anything_2_video` directory.

0 comments on commit de8549c

Please sign in to comment.