ygong0712 / Att-UMamba

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Att-UMamba

Model Overview

3D whole-body CT/PET PSMA Visualization

Installation for Google Colab

Environment setup

!pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu118

'!pip install causal-conv1d>=1.2.0'

!pip install mamba-ssm --no-cache-dir

!git clone https://github.com/ygong0712/Att-UMamba

%cd /content/Att-UMamba/umamba

!pip install -e .

Download dataset

!cp -rp YOUR_DATA_PATH /content/Att-UMamba/data

!cp -rp YOUR_PREPROCESSED_DATA_PATH /content/Att-UMamba/data

Install Python packages

import torch

import mamba_ssm

import os

Preprocessing

nnUNetv2_plan_and_preprocess -d DATASET_ID --verify_dataset_integrity

Train 3D Att-UMamba models

  • Train 3D Att-UMamba model
nnUNetv2_train DATASET_ID 3d_fullres all -tr nnUNetTrainerUMambaEnc

Inference

  • Predict testing cases with the Att-UMamba model
nnUNetv2_predict -i INPUT_FOLDER -o OUTPUT_FOLDER -d DATASET_ID -c CONFIGURATION -f all -tr nnUNetTrainerUMambaEnc --disable_tta

Acknowledgements

We thank the authors of nnU-Net, U-Mamba, and Mamba for making their valuable code publicly available.

About

License:Apache License 2.0


Languages

Language:Python 73.8%Language:Jupyter Notebook 25.8%Language:Shell 0.4%