Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,47 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
# Instructions
|
5 |
+
|
6 |
+
### 1-Download
|
7 |
+
Download the singularity container.
|
8 |
+
```
|
9 |
+
wget https://huggingface.co/qicq1c/SuPreM/resolve/main/suprem_final.sif
|
10 |
+
```
|
11 |
+
### 2-Data preparation
|
12 |
+
This is how `inputs_data` organizes
|
13 |
+
```
|
14 |
+
$inputs_data/
|
15 |
+
βββ casename00001
|
16 |
+
β βββ ct.nii.gz
|
17 |
+
βββ casename00002
|
18 |
+
β βββ ct.nii.gz
|
19 |
+
βββ casename00003
|
20 |
+
β βββ ct.nii.gz
|
21 |
+
...
|
22 |
+
```
|
23 |
+
|
24 |
+
### 3-Inference
|
25 |
+
You can directly perform inference on your own data. Simply modify `inputs_data` into your data path and adjust `outputs_data` to specify the desired output location for the segmentation results.
|
26 |
+
```
|
27 |
+
SINGULARITYENV_CUDA_VISIBLE_DEVICES=0 singularity run --nv -B $inputs_data:/workspace/inputs -B $outputs_data:/workspace/outputs suprem_final.sif
|
28 |
+
```
|
29 |
+
|
30 |
+
This is how `outputs_data` organizes
|
31 |
+
```
|
32 |
+
$outputs_data/
|
33 |
+
βββ case00001
|
34 |
+
βββ case00002
|
35 |
+
βββ case00003
|
36 |
+
βββ combined_labels.nii.gz
|
37 |
+
βββ segmentations
|
38 |
+
βββ aorta.nii.gz
|
39 |
+
βββ gall_bladder.nii.gz
|
40 |
+
βββ kidney_left.nii.gz
|
41 |
+
βββ kidney_right.nii.gz
|
42 |
+
βββ liver.nii.gz
|
43 |
+
βββ pancreas.nii.gz
|
44 |
+
βββ postcava.nii.gz
|
45 |
+
βββ spleen.nii.gz
|
46 |
+
βββ stomach.nii.gz
|
47 |
+
```
|