SEGIC
[ECCV-24] This is the official implementation of the paper "SEGIC: Unleashing the Emergent Correspondence for In-Context Segmentation".
Install / Use
/learn @MengLcool/SEGICREADME
SEGIC: Unleashing the Emergent Correspondence for In-Context Segmentation
Paper (ArXiv)
We introduce SEGIC, an end-to-end segment-in-context framework built upon a single frozen vision foundation model.

Model ZOO
| Model | Backbone | Iters | Config | Download | | ------ | -------- | ------- | ----- | ----- | | SEGIC | DINOv2-l | 80k12e | config | model | SEGIC | DINOv2-l | 160k12e | config | model
Environment Setup
conda create --name segic python=3.10 -y
conda activate segic
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
pip install -r requirements.txt
Train SEGIC
bash scripts/segic_dist.sh 8 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --dinov2_model l --samples_per_epoch 80000
Evaluate SEGIC
Download Datasets
The dataset should be organized as:
data
├── COCO2014
│ ├── annotations
│ ├── train2014
│ └── val2014
├── DAVIS
│ ├── 2016
│ └── 2017
├── FSS-1000
│ ├── abacus
│ ├── abe's_flyingfish
│ ├── ab_wheel
│ ├── ...
└── ytbvos18
└── val
Evaluate One-shot Segmentation
# coco
bash scripts/segic_dist.sh 8 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --eval --restore-model /your/ckpt/path --eval_datasets coco
# fss
bash scripts/segic_dist.sh 8 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --eval --restore-model /your/ckpt/path --eval_datasets fss
Evaluate Zero-shot Video Object Segmentation
# davis-17
bash scripts/segic_dist.sh 8 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --eval_vos --vos_data davis17 --restore-model /your/ckpt/path
# youtubevos-18
bash scripts/segic_dist.sh 8 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --eval_vos --vos_data youtube --restore-model /your/ckpt/path
Custom Inference
bash scripts/segic_dist.sh 1 dinov2 OUTPUT/all_exps/abs_backbone/dinov2_l --custom_eval --restore-model /your/ckpt/path
Acknowledgement
Many thanks to these excellent opensource projects
Citation
If you find this project useful for your research, please use the following BibTeX entry.
@inproceedings{meng2023segic,
title={SEGIC: Unleashing the Emergent Correspondence for In-Context Segmentation},
author={Meng, Lingchen and Lan, Shiyi and Li, Hengduo and Alvarez, Jose M and Wu, Zuxuan and Jiang, Yu-Gang},
journal={ECCV},
year={2024}
}
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
