qicq1c commited on
Commit
5a84e65
β€’
1 Parent(s): d4ae789

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
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
+ ```