Skip to content

Commit 29d216a

Browse files
Add MEDL model
1 parent d49a24b commit 29d216a

File tree

4 files changed

+1008
-0
lines changed

4 files changed

+1008
-0
lines changed

direct/nn/medl/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) DIRECT Contributors
2+
3+
"""Contains the implementation of the MEDL network [1]_ for MRI reconstruction.
4+
5+
References
6+
----------
7+
.. [1] Qiao, X., Huang, Y., Li, W.: MEDL‐Net: A model‐based neural network for MRI reconstruction with enhanced deep
8+
learned regularizers. Magnetic Resonance in Med. 89, 2062–2075 (2023). https://doi.org/10.1002/mrm.29575
9+
"""

direct/nn/medl/config.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) DIRECT Contributors
2+
3+
"""Contains the configuration of MEDL models."""
4+
5+
6+
from dataclasses import dataclass
7+
8+
from direct.config.defaults import ModelConfig
9+
10+
11+
@dataclass
12+
class MEDLConfig(ModelConfig):
13+
iterations: int = (4,)
14+
num_layers: int = 3
15+
unet_num_filters: int = 18
16+
unet_num_pool_layers: int = 4
17+
unet_dropout: float = 0.0
18+
unet_norm: bool = False
19+
20+
21+
@dataclass
22+
class MEDL2DConfig(MEDLConfig):
23+
pass
24+
25+
26+
@dataclass
27+
class MEDL3DConfig(MEDLConfig):
28+
pass

0 commit comments

Comments
 (0)