# WeSAM **Repository Path**: zhiliu001/WeSAM ## Basic Information - **Project Name**: WeSAM - **Description**: https://www.jiqizhixin.com/articles/2024-04-09-2 CVPR 2024 | 分割一切模型SAM泛化能力差?域适应策略给解决了 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-16 - **Last Updated**: 2024-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation

## 🎈 News - [2024.2] Our work has been accepted to CVPR 2024 🎉 ## 🚀 Introduction
image
Segment Anything Model was pre-trained on a large-scale dataset but exhibits awkward performance on diverse downstream segmentation tasks. We adapt SAM through weak supervision to enhance its generalization capabilities. ## 📻 Overview
image
The proposed self-training architecture with anchor network regularization and contrastive loss regularization. Red arrows indicates the backpropagation flow. ## 📆 TODO - [x] Release code ## 🎮 Getting Started ### 1. Install Environment see [INSTALL](INSTALL.md). ### 2. Prepare Dataset and Checkpoints see [PREPARE](PREPARE.md). ### 3. Adapt with Weak Supervision ``` # 1 modify configs/config.py # Prompt type: box, point, coarse # 2 adapt python adaptation.py ``` ## 🖼️ Demo ### COCO Dataset
image
### ISIC Dataset
image
### OCID Dataset
image
### CAMO Dataset
image
### COCO-C Dataset
image image
## 🎫 License The content of this project itself is licensed under [LICENSE](LICENSE). ## 💡 Acknowledgement - [SAM](https://github.com/facebookresearch/segment-anything) - [lightning-sam](https://github.com/luca-medeiros/lightning-sam) - [SAM-LoRA](https://github.com/JamesQFreeman/Sam_LoRA) ## 🖊️ Citation If you find this project useful in your research, please consider cite: ```BibTeX @article{zhang2023improving, title={Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation}, author={Zhang, Haojie and Su, Yongyi and Xu, Xun and Jia, Kui}, journal={arXiv preprint arXiv:2312.03502}, year={2023} } ```