Home

Awesome

S2C

Official repository for CVPR 2024 Oral paper: "From SAM to CAMs: Exploring Segment Anything Model for Weakly Supervised Semantic Segmentation" by Hyeokjun Kweon.

Prerequisite

Prerequisite on SAM

Usage

Training

python train.py --name [exp_name] --model s2c

Evaluation for CAM

python evaluation.py --name [exp_name] --task cam --dict_dir dict

Citation

If our code be useful for you, please consider citing our CVPR 2024 paper using the following BibTeX entry.

@inproceedings{kweon2024sam,
  title={From SAM to CAMs: Exploring Segment Anything Model for Weakly Supervised Semantic Segmentation},
  author={Kweon, Hyeokjun and Yoon, Kuk-Jin},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={19499--19509},
  year={2024}
}