Instructions to use bf0820/TeSCo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sam2
How to use bf0820/TeSCo with sam2:
# Use SAM2 with images import torch from sam2.sam2_image_predictor import SAM2ImagePredictor predictor = SAM2ImagePredictor.from_pretrained("bf0820/TeSCo") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): predictor.set_image(<your_image>) masks, _, _ = predictor.predict(<input_prompts>)# Use SAM2 with videos import torch from sam2.sam2_video_predictor import SAM2VideoPredictor predictor = SAM2VideoPredictor.from_pretrained("bf0820/TeSCo") with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16): state = predictor.init_state(<your_video>) # add new prompts and instantly get the output on the same frame frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>) # propagate the prompts to get masklets throughout the video for frame_idx, object_ids, masks in predictor.propagate_in_video(state): ... - Notebooks
- Google Colab
- Kaggle
File size: 1,783 Bytes
7e4d9fe 0a08ea6 7e4d9fe | 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 | ---
license: apache-2.0
tags:
- cross-view-object-correspondence
- ego-exo4d
- segmentation
- sam2
---
# TeSCo: Exploiting Textual Semantics for Robust Cross-View Object Correspondence (NeurIPS 2026)
[Paper](https://arxiv.org/abs/2611.02356) · [Code](https://github.com/VAIL-Fan/TeSCo) · [Project page](https://fb-reps.github.io/TeSCo/)
Trained TeSCo checkpoints for the Ego-Exo4D correspondence benchmark, one per direction.
| Setting | resolution | file | IoU/Cont.A/Loc.E | size |
|:----:|:-----:|:-----:|:-----:|:-----:|
| Ego→Exo | 480 | [tesco_ego2exo.pt](https://huggingface.co/bf0820/TeSCo/resolve/main/tesco_ego2exo.pt?download=true) | 60.40/0.847/0.011 | 790 MB |
| Exo→Ego | 480 | [tesco_exo2ego.pt](https://huggingface.co/bf0820/TeSCo/resolve/main/tesco_exo2ego.pt?download=true) | 70.30/0.808/0.023 | 790 MB |
## Usage
Place both files in `checkpoints/` of the [code repository](https://github.com/VAIL-Fan/TeSCo) and run, e.g. for Ego→Exo:
```shell
python tools/correspondence_inference.py \
--sam2_cfg sam2.1/sam2.1_hiera_b+_egoexo_text.yaml \
--sam2_checkpoint checkpoints/tesco_ego2exo.pt \
--base_video_dir data/EgoExo4D/data_segswap_test \
--input_mask_dir data/EgoExo4D/data_segswap_test \
--output_mask_dir output/ego2exo --caption_subdir dam_frame_captions_v2
```
For Exo→Ego use `tesco_exo2ego.pt` with `--caption_subdir dam_frame_captions_v2_exo --exo_to_ego`. Data preparation, evaluation and training are described in the code repository.
## Citation
```
@inproceedings{tesco2026,
title={Exploiting Textual Semantics for Robust Cross-View Object Correspondence},
author={Fan, Bing and Feng, Yunhe and Huang, Yan and Fan, Heng},
booktitle={Advances in Neural Information Processing Systems},
year={2026}
}
```
|