Merge remote-tracking branch 'origin/master'
Browse files- .gitignore +3 -1
- .idea/vcs.xml +0 -6
- LICENSE +21 -0
- README.md +69 -6
.gitignore
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
|
|
|
|
|
|
1 |
+
.idea/
|
2 |
+
.vs/
|
3 |
+
*__pycache__/
|
.idea/vcs.xml
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<project version="4">
|
3 |
-
<component name="VcsDirectoryMappings">
|
4 |
-
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
5 |
-
</component>
|
6 |
-
</project>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2022 Javier Pérez de Frutos
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
README.md
CHANGED
@@ -1,12 +1,75 @@
|
|
1 |
-
|
2 |
-
|
|
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
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).
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
Use Evaluate_network to test the trained models. On the Brain folder, use "Evaluate_network__test_fixed.py" instead.
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
<img src="https://user-images.githubusercontent.com/30429725/204778476-4d24c659-9287-48b8-b616-92016ffcf4f6.svg" alt="drawing" width="600">
|
3 |
+
</div>
|
4 |
|
5 |
+
<div align="center">
|
6 |
+
|
7 |
+
<h1 align="center">DDMR: Deep Deformation Map Registration</h1>
|
8 |
+
<h3 align="center">Train smarter, not harder: learning deep abdominal CT registration on scarce data</h3>
|
9 |
+
|
10 |
+
# ⚠️***WARNING: Under construction***
|
11 |
+
|
12 |
+
**DDMR** was developed by SINTEF Health Research. The corresponding manuscript describing the framework has been submitted to [IJCARS](https://www.springer.com/journal/11548) and the preprint is openly available on [arXiv](https://arxiv.org/abs/2211.15717).
|
13 |
+
|
14 |
+
|
15 |
+
</div>
|
16 |
+
|
17 |
+
## 💻 Getting started
|
18 |
+
|
19 |
+
1. Setup virtual environment:
|
20 |
+
```
|
21 |
+
virtualenv -ppython3 venv --clear
|
22 |
+
source venv/bin/activate
|
23 |
+
```
|
24 |
+
|
25 |
+
2. Install requirements:
|
26 |
+
```
|
27 |
+
pip install -r requirements.txt
|
28 |
+
```
|
29 |
+
|
30 |
+
## 🏋️♂️ Training
|
31 |
|
32 |
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).
|
33 |
|
34 |
+
For instance:
|
35 |
+
```
|
36 |
+
python TrainingScripts/Train_3d.py
|
37 |
+
```
|
38 |
+
|
39 |
+
## 🔍 Evaluate
|
40 |
+
|
41 |
Use Evaluate_network to test the trained models. On the Brain folder, use "Evaluate_network__test_fixed.py" instead.
|
42 |
|
43 |
+
For instance:
|
44 |
+
```
|
45 |
+
python EvaluationScripts/evaluation.py
|
46 |
+
```
|
47 |
+
|
48 |
+
## ✨ How to cite
|
49 |
+
Please, consider citing our paper, if you find the work useful:
|
50 |
+
<pre>
|
51 |
+
@misc{perezdefrutos2022ddmr,
|
52 |
+
title = {Train smarter, not harder: learning deep abdominal CT registration on scarce data},
|
53 |
+
author = {Pérez de Frutos, Javier and Pedersen, André and Pelanis, Egidijus and Bouget, David and Survarachakan, Shanmugapriya and Langø, Thomas and Elle, Ole-Jakob and Lindseth, Frank},
|
54 |
+
year = {2022},
|
55 |
+
doi = {10.48550/ARXIV.2211.15717},
|
56 |
+
publisher = {arXiv},
|
57 |
+
copyright = {Creative Commons Attribution 4.0 International},
|
58 |
+
note = {preprint on arXiv at https://arxiv.org/abs/2211.15717}
|
59 |
+
}
|
60 |
+
</pre>
|
61 |
+
|
62 |
+
## ⭐ Acknowledgements
|
63 |
+
This project is based on [VoxelMorph](https://github.com/voxelmorph/voxelmorph) library, and its related publication:
|
64 |
+
<pre>
|
65 |
+
@article{VoxelMorph2019,
|
66 |
+
title={VoxelMorph: A Learning Framework for Deformable Medical Image Registration},
|
67 |
+
author={Balakrishnan, Guha and Zhao, Amy and Sabuncu, Mert R. and Guttag, John and Dalca, Adrian V.},
|
68 |
+
journal={IEEE Transactions on Medical Imaging},
|
69 |
+
year={2019},
|
70 |
+
volume={38},
|
71 |
+
number={8},
|
72 |
+
pages={1788-1800},
|
73 |
+
doi={10.1109/TMI.2019.2897538}
|
74 |
+
}
|
75 |
+
</pre>
|