Skip to content

Commit

Permalink
Merge pull request #131 from directgroup/add-recurrentvarnet
Browse files Browse the repository at this point in the history
Add recurrentvarnet implementation
  • Loading branch information
georgeyiasemis authored Nov 29, 2021
2 parents 6cc2e04 + 712e6f2 commit 4197d7b
Show file tree
Hide file tree
Showing 8 changed files with 1,054 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See [getting_started.md](getting_started.md), check out the [documentation](http
In the [projects](projects) folder examples are given on how to train models on public datasets.

## Baselines and trained models

- [Recurrent Variational Network (RecurrentVarNet)](https://arxiv.org/abs/2111.09639)
- [Recurrent Inference Machine (RIM)](https://www.sciencedirect.com/science/article/abs/pii/S1361841518306078)
- [End-to-end Variational Network (VarNet)](https://arxiv.org/pdf/2004.06688.pdf)
- [Learned Primal Dual Network (LDPNet)](https://arxiv.org/abs/1707.06474)
Expand Down
2 changes: 2 additions & 0 deletions direct/nn/recurrentvarnet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# coding=utf-8
# Copyright (c) DIRECT Contributors
20 changes: 20 additions & 0 deletions direct/nn/recurrentvarnet/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# coding=utf-8
# Copyright (c) DIRECT Contributors

from dataclasses import dataclass
from typing import Optional, Tuple

from direct.config.defaults import ModelConfig


@dataclass
class RecurrentVarNetConfig(ModelConfig):
num_steps: int = 15 # :math:`T`
recurrent_hidden_channels: int = 64
recurrent_num_layers: int = 4 # :math:`n_l`
no_parameter_sharing: bool = True
learned_initializer: bool = True
initializer_initialization: Optional[str] = "sense"
initializer_channels: Optional[Tuple[int, ...]] = (32, 32, 64, 64) # :math:`n_d`
initializer_dilations: Optional[Tuple[int, ...]] = (1, 1, 2, 4) # :math:`p`
initializer_multiscale: int = 1
Loading

0 comments on commit 4197d7b

Please sign in to comment.