Merge branch 'master' into huggingface
Browse files
README.md
CHANGED
@@ -36,7 +36,7 @@ source venv/bin/activate
|
|
36 |
|
37 |
2. Install requirements:
|
38 |
```
|
39 |
-
pip install /
|
40 |
```
|
41 |
|
42 |
## 🤖 How to use
|
@@ -58,6 +58,25 @@ where:
|
|
58 |
|
59 |
Use ```ddmr --help``` to see additional options like using precomputed segmentations to crop the images to the desired ROI, or debugging.
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
## 🏋️♂️ Training
|
62 |
|
63 |
Use the "MultiTrain" scripts to launch the trainings, providing the neccesary parameters. Those in the COMET folder accepts a .ini configuration file (see COMET/train_config_files for example configurations).
|
|
|
36 |
|
37 |
2. Install requirements:
|
38 |
```
|
39 |
+
pip install git+https://github.com/jpdefrutos/DDMR
|
40 |
```
|
41 |
|
42 |
## 🤖 How to use
|
|
|
58 |
|
59 |
Use ```ddmr --help``` to see additional options like using precomputed segmentations to crop the images to the desired ROI, or debugging.
|
60 |
|
61 |
+
## 🤖 How to use
|
62 |
+
Use the following CLI command to register images
|
63 |
+
```
|
64 |
+
ddmr --fixed path/to/fixed_image.nii.gz --moving path/to/moving_image.nii.gz --outputdir path/to/output/dir -a <anatomy> --model <model> --gpu <gpu-number> --original-resolution
|
65 |
+
```
|
66 |
+
where:
|
67 |
+
* anatomy: is the type of anatomy you want to register: B (brain) or L (liver)
|
68 |
+
* model: is the model you want to use:
|
69 |
+
+ BL-N (baseline with NCC)
|
70 |
+
+ BL-NS (baseline with NCC and SSIM)
|
71 |
+
+ SG-ND (segmentation guided with NCC and DSC)
|
72 |
+
+ SG-NSD (segmentation guided with NCC, SSIM, and DSC)
|
73 |
+
+ UW-NSD (uncertainty weighted with NCC, SSIM, and DSC)
|
74 |
+
+ UW-NSDH (uncertainty weighted with NCC, SSIM, DSC, and HD).
|
75 |
+
* gpu: is the GPU number you want to the model to run on, if you have multiple and want to use only one GPU
|
76 |
+
* original-resolution: (flag) whether to upsample the registered image to the fixed image resolution (disabled if the flag is not present)
|
77 |
+
|
78 |
+
Use ```ddmr --help``` to see additional options like using precomputed segmentations to crop the images to the desired ROI, or debugging.
|
79 |
+
|
80 |
## 🏋️♂️ Training
|
81 |
|
82 |
Use the "MultiTrain" scripts to launch the trainings, providing the neccesary parameters. Those in the COMET folder accepts a .ini configuration file (see COMET/train_config_files for example configurations).
|