File size: 2,378 Bytes
fb0f4cf
 
ccd865e
 
 
 
 
33f098f
 
 
 
 
fb0f4cf
ccd865e
 
 
 
 
 
 
 
ffd8ceb
ccd865e
09d60d9
ccd865e
ffd8ceb
ccd865e
 
 
 
 
 
 
611c059
09d60d9
ccd865e
 
ffd8ceb
ccd865e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f1e8633
ed945d7
ccd865e
ed945d7
ccd865e
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
license: apache-2.0
language:
- en
base_model: facebook/sam-vit-base
tags:
- pytorch
- Referring Audio-Visual Segmentation
- Audio-Visual Segmentation
- Multimodal Learning
- SAM
- CVPR2025
---

# TSAM

**Temporal SAM Augmented with Multimodal Prompts for Referring Audio-Visual Segmentation**  
Abduljalil Radman and Jorma Laaksonen · Aalto University · CVPR 2025

[Paper](https://openaccess.thecvf.com/content/CVPR2025/html/Radman_TSAM_Temporal_SAM_Augmented_with_Multimodal_Prompts_for_Referring_Audio-Visual_CVPR_2025_paper.html) · [Project](https://abdurad.github.io/TSAM/) · [Code](https://github.com/abdurad/TSAM)

This repository contains an inference-only checkpoint of TSAM, initialized with SAM ViT-B.

<!-- ## Results

The checkpoint was evaluated on all test splits using the official Ref-AVS metadata.

| Split | J (%) ↑ | F ↑ | S ↓ |
|---|---:|---:|---:|
| Seen | 62.93 | 0.7474 | — |
| Unseen | 54.65 | 0.7051 | — |
| Null | — | — | 0.01414 |

These are results for this release. The paper reports seen J/F of 43.43/0.568, unseen J/F of 54.58/0.664, and null S of 0.017.
-->
## Load

Use the accompanying TSAM Python implementation.

```python
import torch
from huggingface_hub import hf_hub_download
from tsam.runtime import load_checkpoint

path = hf_hub_download(repo_id="abdurad/TSAM", filename="tsam_vit_b.pt")
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model, metadata = load_checkpoint(path, device)
model.eval()
```

For benchmark evaluation, pass your local data and feature paths:

```bash
python evaluate_tsam.py \
    --checkpoint /path/to/tsam_vit_b.pt \
    --data-dir /path/to/REFAVS \
    --text-features-dir /path/to/text_features \
    --output-dir evaluations_output \
    --audio-features-dir /path/to/audio_features
```
Extraction and dataset setup instructions are provided In the GitHub.

## License and citation

Apache-2.0. Retain the included SAM attribution and license notices. Dataset and third-party asset licenses remain separate.

```bibtex
@InProceedings{Radman_2025_CVPR,
  author = {Radman, Abduljalil and Laaksonen, Jorma},
  title = {TSAM: Temporal SAM Augmented with Multimodal Prompts for Referring Audio-Visual Segmentation},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  pages = {23947--23956}
}
```