wdika commited on
Commit
2f2e8b7
1 Parent(s): 72f710a

Upload config

Browse files
Files changed (1) hide show
  1. readme_template.md +121 -0
readme_template.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ library_name: atommic
6
+ datasets:
7
+ - AHEAD
8
+ thumbnail: null
9
+ tags:
10
+ - image-reconstruction
11
+ - VarNet
12
+ - ATOMMIC
13
+ - pytorch
14
+ model-index:
15
+ - name: REC_VarNet_AHEAD_gaussian2d_12x
16
+ results: []
17
+
18
+ ---
19
+
20
+
21
+ ## Model Overview
22
+
23
+ Variational Network (VarNet) for 12x accelerated MRI Reconstruction on the AHEAD dataset.
24
+
25
+
26
+ ## ATOMMIC: Training
27
+
28
+ To train, fine-tune, or test the model you will need to install [ATOMMIC](https://github.com/wdika/atommic). We recommend you install it after you've installed latest Pytorch version.
29
+ ```
30
+ pip install atommic['all']
31
+ ```
32
+
33
+ ## How to Use this Model
34
+
35
+ The model is available for use in ATOMMIC, and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
36
+
37
+ Corresponding configuration YAML files can be found [here](https://github.com/wdika/atommic/tree/main/projects/REC/AHEAD/conf).
38
+
39
+
40
+ ### Automatically instantiate the model
41
+
42
+ ```base
43
+ pretrained: true
44
+ checkpoint: https://huggingface.co/wdika/REC_VarNet_AHEAD_gaussian2d_12x/blob/main/REC_VarNet_AHEAD_gaussian2d_12x.atommic
45
+ mode: test
46
+ ```
47
+
48
+ ### Usage
49
+
50
+ You need to download the AHEAD dataset to effectively use this model. Check the [AHEAD](https://github.com/wdika/atommic/blob/main/projects/REC/AHEAD/README.md) page for more information.
51
+
52
+
53
+ ## Model Architecture
54
+ ```base
55
+ model:
56
+ model_name: VN
57
+ num_cascades: 8
58
+ channels: 18
59
+ pooling_layers: 4
60
+ padding_size: 11
61
+ normalize: true
62
+ no_dc: false
63
+ dimensionality: 2
64
+ num_echoes: 4
65
+ reconstruction_loss:
66
+ ssim: 1.0
67
+ ```
68
+
69
+ ## Training
70
+ ```base
71
+ optim:
72
+ name: adamw
73
+ lr: 1e-4
74
+ betas:
75
+ - 0.9
76
+ - 0.999
77
+ weight_decay: 0.0
78
+ sched:
79
+ name: PolynomialHoldDecayAnnealing
80
+ min_lr: 0.0
81
+ last_epoch: -1
82
+ warmup_ratio: 0.1
83
+
84
+ trainer:
85
+ strategy: ddp_find_unused_parameters_false
86
+ accelerator: gpu
87
+ devices: 1
88
+ num_nodes: 1
89
+ max_epochs: 20
90
+ precision: 16-mixed
91
+ enable_checkpointing: false
92
+ logger: false
93
+ log_every_n_steps: 50
94
+ check_val_every_n_epoch: -1
95
+ max_steps: -1
96
+ ```
97
+
98
+ ## Performance
99
+
100
+ To compute the targets using the raw k-space and the chosen coil combination method, accompanied with the chosen coil sensitivity maps estimation method, you can use [targets](https://github.com/wdika/atommic/tree/main/projects/REC/AHEAD/conf/targets) configuration files.
101
+
102
+ Evaluation can be performed using the [evaluation](https://github.com/wdika/atommic/blob/main/tools/evaluation/reconstruction.py) script for the reconstruction task, with --evaluation_type per_slice.
103
+
104
+ Results
105
+ -------
106
+
107
+ Evaluation against SENSE targets
108
+ --------------------------------
109
+ 12x: MSE = 0.0006782 +/- 0.0008642 NMSE = 0.04725 +/- 0.06244 PSNR = 32.39 +/- 4.795 SSIM = 0.8935 +/- 0.05252
110
+
111
+
112
+ ## Limitations
113
+
114
+ This model was trained on very few subjects on the AHEAD dataset. It is not guaranteed to generalize to other datasets.
115
+
116
+
117
+ ## References
118
+
119
+ [1] [ATOMMIC](https://github.com/wdika/atommic)
120
+
121
+ [2] Alkemade A, Mulder MJ, Groot JM, et al. The Amsterdam Ultra-high field adult lifespan database (AHEAD): A freely available multimodal 7 Tesla submillimeter magnetic resonance imaging database. NeuroImage 2020;221.