Views
No views yet
git clone https://github.com/zaccharieramzi/fastmri-reproducible-benchmark, you can install the package via pip install fastmri-reproducible-benchmark.
The framework is TensorFlow.1import tensorflow as tf
2
3from fastmri_recon.models.subclassed_models.denoisers.proposed_params import get_model_specs
4from fastmri_recon.models.subclassed_models.xpdnet import XPDNet
5
6
7n_primal = 5
8model_fun, model_kwargs, n_scales, res = [
9 (model_fun, kwargs, n_scales, res)
10 for m_name, m_size, model_fun, kwargs, _, n_scales, res in get_model_specs(n_primal=n_primal, force_res=False)
11 if m_name == 'MWCNN' and m_size == 'medium'
12][0]
13model_kwargs['use_bias'] = False
14run_params = dict(
15 n_primal=n_primal,
16 multicoil=True,
17 n_scales=n_scales,
18 refine_smaps=True,
19 refine_big=True,
20 res=res,
21 output_shape_spec=True,
22 n_iter=25,
23)
24model = XPDNet(model_fun, model_kwargs, **run_params)
25kspace_size = [1, 1, 320, 320]
26inputs = [
27 tf.zeros(kspace_size + [1], dtype=tf.complex64), # kspace
28 tf.zeros(kspace_size, dtype=tf.complex64), # mask
29 tf.zeros(kspace_size, dtype=tf.complex64), # smaps
30 tf.constant([[320, 320]]), # shape
31]
32model(inputs)
33model.load_weights('model_weights.h5')1model([
2 kspace, # shape: [n_slices, n_coils, n_rows, n_cols, 1]
3 mask, # shape: [n_slices, n_coils, n_rows, n_cols]
4 smaps, # shape: [n_slices, n_coils, n_rows, n_cols]
5 shape, # shape: [n_slices, 2]
6])| Contrast | T1 | T2 | FLAIR | T1-POST |
|---|---|---|---|---|
| PSNR | 41.56 | 40.68 | 39.60 | 42.53 |
| SSIM | 0.9506 | 0.9554 | 0.9321 | 0.9683 |
@inproceedings{Ramzi2020d,
archivePrefix = {arXiv},
arxivId = {2010.07290},
author = {Ramzi, Zaccharie and Ciuciu, Philippe and Starck, Jean-Luc},
booktitle = {ISMRM},
eprint = {2010.07290},
pages = {1--4},
title = {{XPDNet for MRI Reconstruction: an application to the 2020 fastMRI challenge}},
url = {http://arxiv.org/abs/2010.07290},
year = {2021}
}