qicq1c commited on
Commit
7db29b4
Β·
verified Β·
1 Parent(s): 6494969

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -3
README.md CHANGED
@@ -2,14 +2,47 @@
2
  license: apache-2.0
3
  ---
4
 
5
- Singularity container for abdominal tumor (liver, pancreas and kidney) prediction. The segmentation model used from [DiffTumor](https://github.com/MrGiovanni/DiffTumor).
6
 
7
- Download the Singularity container.
 
 
 
 
 
8
  ```
9
  wget https://huggingface.co/qicq1c/DiffTumor/difftumor_final.sif
10
  ```
11
- You can directly inference on your own data. Just modify `inputs_data` into your data path, and modify 'outputs_data' as where you want output the segmentation results.
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ```
13
  SINGULARITYENV_CUDA_VISIBLE_DEVICES=0 singularity run --nv -B $inputs_data:/workspace/inputs -B $outputs_data:/workspace/outputs difftumor_final.sif
14
  ```
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
3
  ---
4
 
5
+ # DiffTumor
6
 
7
+ The Singularity container is designed for the prediction of abdominal tumors, specifically targeting the liver, pancreas, and kidneys. It utilizes a segmentation model sourced from DiffTumor. [DiffTumor](https://github.com/MrGiovanni/DiffTumor).
8
+
9
+ # Instructions
10
+
11
+ ### 1-Download
12
+ Download the singularity container.
13
  ```
14
  wget https://huggingface.co/qicq1c/DiffTumor/difftumor_final.sif
15
  ```
16
+ ### 2-Data preparation
17
+ This is how `inputs_data` organizes
18
+ ```
19
+ $inputs_data/
20
+ β”œβ”€β”€ case00001.nii.gz
21
+ β”œβ”€β”€ case00002.nii.gz
22
+ β”œβ”€β”€ case00003.nii.gz
23
+ β”œβ”€β”€ case000xx.nii.gz
24
+ β”œβ”€β”€ ...
25
+ β”œβ”€β”€ case10000.nii.gz
26
+ ```
27
+
28
+ ### 3-Inference
29
+ You can directly perform inference on your own data. Simply modify inputs_data to reflect your data path and adjust outputs_data to specify the desired output location for the segmentation results.
30
  ```
31
  SINGULARITYENV_CUDA_VISIBLE_DEVICES=0 singularity run --nv -B $inputs_data:/workspace/inputs -B $outputs_data:/workspace/outputs difftumor_final.sif
32
  ```
33
 
34
+ This is how `outputs_data` organizes
35
+ ```
36
+ $outputs_data/
37
+ β”œβ”€β”€ case00001
38
+ β”œβ”€β”€ case00002
39
+ β”œβ”€β”€ case00003
40
+ │── ct.nii.gz
41
+ └── predictions
42
+ β”œβ”€β”€ liver.nii.gz
43
+ β”œβ”€β”€ pancreas.nii.gz
44
+ β”œβ”€β”€ kidney.nii.gz
45
+ β”œβ”€β”€ liver_tumor.nii.gz
46
+ β”œβ”€β”€ pancreas_tumor.nii.gz
47
+ β”œβ”€β”€ kidney_tumor.nii.gz
48
+ ```