You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: label_studio_ml/examples/segment_anything_2_image/README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,16 +133,28 @@ cd label_studio_ml/examples/segment_anything_2_image
133
133
pip install -r requirements.txt
134
134
```
135
135
136
-
2. Download [`segment-anything-2` repo](https://github.com/facebookresearch/segment-anything-2) into the root directory. Install SegmentAnything model and download checkpoints using [the official Meta documentation](https://github.com/facebookresearch/segment-anything-2?tab=readme-ov-file#installation)
136
+
2. Download [`segment-anything-2` repo](https://github.com/facebookresearch/segment-anything-2) into the ROOT directory. Install SegmentAnything model and download checkpoints using [the official Meta documentation](https://github.com/facebookresearch/segment-anything-2?tab=readme-ov-file#installation)
137
137
138
+
You should now have the following folder structure:
139
+
140
+
| root directory
141
+
| label-studio-ml-backend
142
+
| label-studio-ml
143
+
| examples
144
+
| segment_anythng_2_image
145
+
| sam2
146
+
| sam2
147
+
| checkpoints
138
148
139
149
3. Then you can start the ML backend on the default port `9090`:
Due to breaking changes from Meta, it is CRUCIAL that you run this command from the sam2 directory at your root directory.
157
+
146
158
4. Connect running ML backend server to Label Studio: go to your project `Settings -> Machine Learning -> Add Model` and specify `http://localhost:9090` as a URL. Read more in the official [Label Studio documentation](https://labelstud.io/guide/ml#Connect-the-model-to-Label-Studio).
0 commit comments