Update README.md
Browse files
README.md
CHANGED
@@ -3,12 +3,7 @@ license: apache-2.0
|
|
3 |
---
|
4 |
# Instructions
|
5 |
|
6 |
-
|
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/
|
@@ -20,9 +15,27 @@ This is how `inputs_data` organizes
|
|
20 |
β βββ ct.nii.gz
|
21 |
...
|
22 |
```
|
|
|
|
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
```
|
|
|
3 |
---
|
4 |
# Instructions
|
5 |
|
6 |
+
## 1-Data preparation
|
|
|
|
|
|
|
|
|
|
|
7 |
This is how `inputs_data` organizes
|
8 |
```
|
9 |
$inputs_data/
|
|
|
15 |
β βββ ct.nii.gz
|
16 |
...
|
17 |
```
|
18 |
+
## 2-Download
|
19 |
+
You can choose to use the docker image (recommand) or the singularity container.
|
20 |
|
21 |
+
#### Download the docker image.
|
22 |
+
```
|
23 |
+
docker pull qchen99/suprem:v1
|
24 |
+
```
|
25 |
+
or
|
26 |
+
#### Download the singularity container.
|
27 |
+
```
|
28 |
+
wget https://huggingface.co/qicq1c/SuPreM/resolve/main/suprem_final.sif
|
29 |
+
```
|
30 |
+
|
31 |
+
## 3-Inference
|
32 |
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.
|
33 |
+
#### Use Docker
|
34 |
+
```
|
35 |
+
sudo docker container run --gpus "device=0" -m 128G --rm -v $inputs_data:/workspace/inputs/ -v $outputs_data:/workspace/outputs/ qchen99/suprem:v1 /bin/bash -c "sh predict.sh"
|
36 |
+
```
|
37 |
+
or
|
38 |
+
#### Use Singularity
|
39 |
```
|
40 |
SINGULARITYENV_CUDA_VISIBLE_DEVICES=0 singularity run --nv -B $inputs_data:/workspace/inputs -B $outputs_data:/workspace/outputs suprem_final.sif
|
41 |
```
|