!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 .
!cp -rp YOUR_DATA_PATH /content/Att-UMamba/data
!cp -rp YOUR_PREPROCESSED_DATA_PATH /content/Att-UMamba/data
import torch
import mamba_ssm
import os
nnUNetv2_plan_and_preprocess -d DATASET_ID --verify_dataset_integrity
- Train 3D Att-UMamba model
nnUNetv2_train DATASET_ID 3d_fullres all -tr nnUNetTrainerUMambaEnc
- 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
We thank the authors of nnU-Net, U-Mamba, and Mamba for making their valuable code publicly available.