File size: 1,857 Bytes
6de806f 5328828 6de806f 5328828 f1233b0 5328828 aeebe00 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 5328828 f1233b0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | ---
license: cc-by-4.0
---
This repository provides the nnUNet v2 checkpoint for multi-organ lesion segmentation from abdominal CT images.
The model was trained on a large-scale multi-center CT dataset with expert-annotated lesion masks across multiple organs (liver, pancreas, kidney, colon).
## Label Definitions
```bash
"labels": {
"background": 0,
"liver_segment_1": 1,
"liver_segment_2": 2,
"liver_segment_3": 3,
"liver_segment_4": 4,
"liver_segment_5": 5,
"liver_segment_6": 6,
"liver_segment_7": 7,
"liver_segment_8": 8,
"pancreas_head": 9,
"pancreas_body": 10,
"pancreas_tail": 11,
"kidney_left": 12,
"kidney_right": 13,
"colon": 14,
"liver_lesion": 15,
"pancreatic_lesion": 16,
"kidney_lesion": 17,
"colon_lesion": 18
}
```
## 1. Installation
```bash
git clone https://github.com/MIC-DKFZ/nnUNet.git
cd nnUNet
pip install -e .
```
## 2. Inference
#### 2.1 Create a folder (e.g., nnUNet_eval), rename all your ct files and put them in the folder.
```bash
nnUNet_eval/
βββ Dataset1351/
βββ imagesTs/
βββ ct001_0000.nii.gz
βββ ct002_0000.nii.gz
```
#### 2.2 Place the checkpoint into
```bash
nnUNet_results/
βββ Dataset1351/nnUNetTrainer__nnUNetResEncUNetLPlans__3d_fullres/fold_all/
```
#### 2.3 Run inference
```bash
export nnUNet_N_proc_DA=36
export nnUNet_results="./nnUNet_results"
export nnUNet_predictions="./nnUNet_predictions"
export nnUNet_eval="./nnUNet_eval"
GPU_ID=0
DATASET=1351
TRAINER=nnUNetTrainer
CUDA_VISIBLE_DEVICES=$GPU_ID nnUNetv2_predict -d $DATASET -i $nnUNet_eval/ -o $nnUNet_predictions/ -tr $TRAINER -d $DATASET -c 3d_fullres -f all -p nnUNetResEncUNetLPlans --continue_prediction
```
|