Update README.md
Browse files
README.md
CHANGED
|
@@ -2,14 +2,47 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
```
|
| 9 |
wget https://huggingface.co/qicq1c/DiffTumor/difftumor_final.sif
|
| 10 |
```
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
```
|