Skip to content
/ CAT Public

The official respository of paper ''Coordinating Anatomical-Textual Prompts for Multi-Organ and Tumor Segmentation''

Notifications You must be signed in to change notification settings

zongzi3zz/CAT

Repository files navigation

CAT: Coordinating Anatomical-Textual Prompts for Multi-Organ and Tumor Segmentation

Zhongzhen Huang, Yankai Jiang, Rongzhao Zhang, Shaoting Zhang, Xiaofan Zhang

arXiv PDF Project Page Video


🎉 News

  • [2024/09] CAT is accepted to NeurIPS 2024!

🛠️ Quick Start

Installation

  • It is recommended to build a Python-3.9 virtual environment using conda

    git clone https://github.com/zongzi3zz/CAT.git
    cd CAT
    conda env create -f env.yml
    

Dataset Preparation

Dataset Pre-Process

  1. Please refer to CLIP-Driven to organize the downloaded datasets.
  2. Modify ORGAN_DATASET_DIR and NUM_WORKER in label_transfer.py
  3. python -W ignore label_transfer.py
  4. The example of data configure for training and evaluation can be seen in datalist

Prompt Feats

We provide the prompt feats in BaiduNetdisk (code: mbae).

Model Weights

The weights used for train and inference are provided in GoogleDrive.

Data Download
Partial link
Full link

Train & Evaluation

The entire training process takes approximately 4 days using 8×A100 GPUs.

  • Train Pipeline: Set the parameter data_root and run:
    bash scripts/train.sh

We provide two model weights, hoping that the weights trained with full data would support organ and tumor segmentation tasks in other scenarios. Set the parameter pretrain_weights and run:

  • Evaluation
    bash scripts/test.sh
  • Inference
    bash scripts/inference.sh

If you want to use the Full weight, you need to add --only_last

Citation

If you find CAT useful, please cite using this BibTeX:

@article{huang2024cat,
  title={CAT: Coordinating Anatomical-Textual Prompts for Multi-Organ and Tumor Segmentation},
  author={Huang, Zhongzhen and Jiang, Yankai and Zhang, Rongzhao and Zhang, Shaoting and Zhang, Xiaofan},
  journal={arXiv preprint arXiv:2406.07085},
  year={2024}
}

Acknowledgement

About

The official respository of paper ''Coordinating Anatomical-Textual Prompts for Multi-Organ and Tumor Segmentation''

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published