|
Download README.md from abdurad/TSAM: direct link, hf CLI and curl.
- Browser
- Download file 2.38 kB
-
https://huggingface.co/abdurad/TSAM/resolve/main/README.md
- Command line
-
hf download hf://abdurad/TSAM/README.md
-
curl -L -o README.md https://huggingface.co/abdurad/TSAM/resolve/main/README.md
2.38 kB
| 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} | |
| } | |
| ``` | |