xmed-lab/CLIP_Surgery
A research method that improves CLIP model explainability and enhances open-vocabulary tasks like segmentation and multi-label recognition without fine-tuning.

CLIP Surgery is a technique that addresses two explainability problems in CLIP — opposite visualization in self-attention and noisy activations across labels — by surgical modification of the model’s behavior without requiring fine-tuning or additional supervision. The method enhances downstream tasks including multi-label recognition, semantic segmentation, and integration with Segment Anything Model (SAM) through text-to-point prompting. The project provides a Jupyter demo and Python implementation for interpretability analysis.
Frequently asked
- What is xmed-lab/CLIP_Surgery?
- A research method that improves CLIP model explainability and enhances open-vocabulary tasks like segmentation and multi-label recognition without fine-tuning.
- Is CLIP_Surgery open source?
- Yes — xmed-lab/CLIP_Surgery is an open-source project tracked on heatdrop.
- What language is CLIP_Surgery written in?
- xmed-lab/CLIP_Surgery is primarily written in Jupyter Notebook.
- How popular is CLIP_Surgery?
- xmed-lab/CLIP_Surgery has 478 stars on GitHub.
- Where can I find CLIP_Surgery?
- xmed-lab/CLIP_Surgery is on GitHub at https://github.com/xmed-lab/CLIP_Surgery.