Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aleemsidra/SaLIP

This repository contains the pytorch code for our CVPRW 2024 paper "Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero-shot Medical Image Segmentation".
https://github.com/aleemsidra/SaLIP

Last synced: about 1 month ago
JSON representation

This repository contains the pytorch code for our CVPRW 2024 paper "Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero-shot Medical Image Segmentation".

Awesome Lists containing this project

README

        

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

This project is an implementation of the paper ["Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero shot Medical Image Segmentation"](https://arxiv.org/pdf/2404.06362.pdf), accepted at [CVPRW 2024].

## SaLIP

## Setup
To set up the project environment using conda, follow these steps:

1. Clone the repository: ```[email protected]:aleemsidra/SaLIP.git```
2. Navigate to the project directory: ```cd SaLIP```
3. Create a conda environment: ```conda create --name sam python=3.8```
5. Download SAM's checkpoint from [here ](https://github.com/facebookresearch/segment-anything?tab=readme-ov-file#model-checkpoints)

## Arguments
The ```main.py``` script is the main entry point of the project. It performs the following steps:

```mode:``` Specifies the baseline e.g. sam_clip, sam_clip_3d

```prompt_mode:``` Specifies the visual prompt mode for CLIP (default: "crops")

```vit_name: ``` Specifies SAM's checkpoint version (default: "vit_h" )

```data:``` Specifies the dataset

```config:``` Specifies the path to config file

```seed:``` Specifies seed value for reproducibility

## Example command

```
python main.py --config ./config/lung.json --mode "sam_clip" --prompt_mode "crops" --dataset "cxr" --seed 1234
```

## Contact
Feel free to raise an issue or contact me at [email protected] for queries and discussions.