Video-Text-to-Text
PEFT
Safetensors
EndoComparer / README.md
ethanshili's picture
Model card: arXiv badge and citation (arXiv:2611.19578)
de74957 verified
|
Raw History Blame Contribute Delete
2.73 kB
---
license: cc-by-nc-sa-4.0
base_model: Qwen/Qwen3.5-9B
library_name: peft
pipeline_tag: video-text-to-text
---
# EndoComparer
<div style="display: flex; gap: 5px;">
<a href="https://arxiv.org/abs/2611.19578" target="_blank"><img src="https://img.shields.io/badge/arXiv-2611.19578-b31b1b"></a>
<a href="https://camma-public.github.io/endocomparer/" target="_blank"><img src="https://img.shields.io/badge/Project-Page-brightgreen"></a>
<a href="https://github.com/CAMMA-public/endocomparer/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-purple"></a>
<a href="https://github.com/CAMMA-public/endocomparer" target="_blank"><img src="https://img.shields.io/github/stars/CAMMA-public/endocomparer"></a>
</div>
**EndoComparer** is a vision-language model focused on cross-case surgical video comparison: given two surgical videos from different cases, it answers questions about whether and how they differ in anatomy, tools, actions and skill. It gives each video its own visual encoding and reasoning path, which makes the model more robust and accurate against video-binding confusion, where the content of one video is attributed to the other.
## 🚀 Quick Start
**1. Install**
```bash
git clone https://github.com/CAMMA-public/endocomparer.git
cd endocomparer
pip install -r requirements.txt
```
**2. Get the base model and the EndoComparer checkpoint**
```bash
hf download Qwen/Qwen3.5-9B --local-dir models/Qwen3.5-9B
hf download ethanshili/EndoComparer --local-dir models/EndoComparer
```
**3. Run inference on the demo item**
`demo/` ships one EndoDiffVQA test item: two cholecystectomy clips and the question
*"Is the gallbladder coagulated in both videos?"* with its four options.
```bash
bash scripts/evaluate.sh --jsonl demo/items.jsonl \
--model models/Qwen3.5-9B --weights models/EndoComparer \
--out results/demo/results.json
```
The model first states what each video shows, then gives the letter:
```
Video 1: coagulated. Video 2: not coagulated. (b)
```
Please refer to our [GitHub repository](https://github.com/CAMMA-public/endocomparer) for training and evaluation.
## 📖 Citation
If you find EndoComparer or EndoDiffVQA useful, please cite:
```bibtex
@article{li2026endocomparer,
title = {EndoComparer: Comparative Surgical Video Question Answering with Pseudo-Siamese Visual Adaptation and Perceive-then-Compare Reasoning},
author = {Li, Shi and Sharan, Lalith and Lavanchy, Jo{\"e}l L. and Yuan, Kun and Arboit, Lorenzo and Banik, Nabani and Yazici, Elif and Vannucci, Maria and Srivastav, Vinkle and Mascagni, Pietro and Padoy, Nicolas},
journal = {arXiv preprint arXiv:2611.19578},
year = {2026}
}
```