facebookresearch / fastMRI

A large-scale dataset of both raw MRI measurements and clinical MRI images.
https://fastmri.org
MIT License
1.29k stars 370 forks source link

minor problem on `fastMRI_tutorial.ipynb` #232

Closed YuyangXueEd closed 2 years ago

YuyangXueEd commented 2 years ago

Hey guys! Thanks for this great dataset and toolbox. I'm just starting out in this field and trying out this awesome dataset. Just a little problem when I run fastMRI_tutorial.ipynb, I found that:

masked_kspace, mask = T.apply_mask(slice_kspace2, mask_func) 

makes an error. The old API return only two parameters but now is three. I hope someone can change it.

# add `_`, `num_low_frequencies`, or something else
masked_kspace, mask, _ = T.apply_mask(slice_kspace2, mask_func) 

I hope this can help newcomers who just begin to learn MRI Recon. Thanks 😃

mmuckley commented 2 years ago

Closed by PR #233.