File size: 1,274 Bytes
1ddbd22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
license: apache-2.0
---

# SAM 2 – Photogrammetry Segmentation (Scroll & Ruler)

Fine-tuned checkpoints of [SAM 2.1](https://github.com/facebookresearch/sam2) (hiera-tiny),
for segmenting the papyrus scroll (and, where present, a calibration ruler) in photogrammetry
photos of the Herculaneum papyri. Produced by fine-tuning the prompt encoder and mask decoder
of SAM 2.1 on a dataset of scroll/mask image pairs.

Code: https://github.com/ScrollPrize/villa/tree/main/foundation/sam2-photogrammetry

## Checkpoints

| File | Description |
|---|---|
| `photo2_ruler_t_1000.torch` | For photogrammetry captures that include a calibration ruler in frame — segments both scroll and ruler. 1000 training iterations. |
| `photo2_t_5000.torch` | For photogrammetry captures with no ruler in frame — segments scroll only. 5000 training iterations. |

## Usage

See the [sam2-photogrammetry README](https://github.com/ScrollPrize/villa/tree/main/foundation/sam2-photogrammetry)
for full setup instructions. To fetch a checkpoint directly:

```bash
wget https://huggingface.co/scrollprize/sam2-photogrammetry/resolve/main/photo2_ruler_t_1000.torch -P checkpoints/
```

## License

Apache 2.0, matching the parent [SAM 2](https://github.com/facebookresearch/sam2) repository.