Skip to content

Commit c59561a

Browse files
authored
SAM2: Update README.md (#1735)
Update README.md
1 parent 79ac44e commit c59561a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

examples/sam2_amg_server/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# Reproducing experiments locally
2+
3+
You can simply run `python reproduce_experiments.py <path/to/image_paths_file> <path/to/output_folder>`
4+
5+
`image_paths_file` needs to be a flat list of paths to images, for example
6+
7+
```
8+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_044979/00349.jpg
9+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_006751/00204.jpg
10+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_053118/00239.jpg
11+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_053391/00517.jpg
12+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_018487/00001.jpg
13+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_028552/00153.jpg
14+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_013729/00103.jpg
15+
/home/$USER/data/sav_val/JPEGImages_24fps/sav_014662/00339.jpg
16+
```
17+
18+
or whichever other files you'd like to use for study. For example you may consider the Segment Anything Video (SA-V) [Dataset](https://github.com/facebookresearch/sam2/tree/main/sav_dataset#download-the-dataset).
19+
20+
The experimental results will then be saved under `output_folder` in result.csv
21+
22+
# Reproducing experiments on Modal
23+
24+
For this you can run `modal_experiments.sh` after, but you'll want to experiments locally first to produce the meta annotations and exported ahead-of-time compiled binaries.
25+
26+
# Using the server locally
127
## Example curl command
228
```
329
curl -X POST http://127.0.0.1:5000/upload -F 'image=@/path/to/file.jpg' --output path/to/output.png

0 commit comments

Comments
 (0)