SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.06362 · 2024

Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero shot Medical Image Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 12 functions out of this paper's own repositories and ran 8 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
aleemsidra/SaLIP canonical 8 of 12
FunctionStatusWhere it lives
dice_coeff Ran aleemsidra/SaLIP/sam_clip_3d.py
code served (permissive licence) · get_code("4017666e5cd0801f")
dice_coeff Ran aleemsidra/SaLIP/utils/utils.py
code served (permissive licence) · get_code("ce54a742919b8034")
get_crops Ran aleemsidra/SaLIP/sam_clip.py
code served (permissive licence) · get_code("e9b52816a6e8d5b8")
get_rel_pos Ran aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py
code served (permissive licence) · get_code("733d7f0bedcb74c2")
prepare_image Ran aleemsidra/SaLIP/sam_clip.py
code served (permissive licence) · get_code("e6af0754224f9b26")
prepare_image Ran aleemsidra/SaLIP/sam_clip_3d.py
code served (permissive licence) · get_code("96dd89ecd1e9afa3")
process_config Ran aleemsidra/SaLIP/utils/utils.py
code served (permissive licence) · get_code("07e7154e4c2da99e")
window_partition Ran aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py
code served (permissive licence) · get_code("105fa08885dc36cc")
build_sam_vit_b Not yet run aleemsidra/SaLIP/segment_anything/build_sam.py
code served (permissive licence) · get_code("f9bc5f31ce61cee8")
build_sam_vit_h Not yet run aleemsidra/SaLIP/segment_anything/build_sam.py
code served (permissive licence) · get_code("6b77c1f11fff3ed6")
build_sam_vit_l Not yet run aleemsidra/SaLIP/segment_anything/build_sam.py
code served (permissive licence) · get_code("3f8890e695469246")
window_unpartition Not yet run aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py
code served (permissive licence) · get_code("27be441cc8213e52")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The Segment Anything Model (SAM) and CLIP are remarkable vision foundation models (VFMs). SAM, a prompt driven segmentation model, excels in segmentation tasks across diverse domains, while CLIP is renowned for its zero shot recognition capabilities. However, their unified potential has not yet been explored in medical image segmentation. To adapt SAM to medical imaging, existing methods primarily rely on tuning strategies that require extensive data or prior prompts tailored to the specific task, making it particularly challenging when only a limited number of data samples are available. This work presents an in depth exploration of integrating SAM and CLIP into a unified framework for medical image segmentation. Specifically, we propose a simple unified framework, SaLIP, for organ segmentation. Initially, SAM is used for part based segmentation within the image, followed by CLIP to retrieve the mask corresponding to the region of interest (ROI) from the pool of SAM generated masks. Finally, SAM is prompted by the retrieved ROI to segment a specific organ. Thus, SaLIP is training and fine tuning free and does not rely on domain expertise or labeled data for prompt engineering. Our method shows substantial enhancements in zero shot segmentation, showcasing notable improvements in DICE scores across diverse segmentation tasks like brain (63.46%), lung (50.11%), and fetal head (30.82%), when compared to un prompted SAM. Code and text prompts are available at: https://github.com/aleemsidra/SaLIP.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.06362")
get_code_for_paper("2404.06362")
have("2404.06362")

Connect an agent — have() is free.