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

Allow different-length center fractions/accelerations #175

Closed mmuckley closed 2 years ago

mmuckley commented 2 years ago

This PR allows the user to use different-length center-fractions and accelerations. It also allows mixing between center fractions and accelerations.

Old Code For example, if the user inputs [0.08, 0.04] for center_fractions and [4, 8] for accelerations, under the previous code, 0.08 would always be selected with 4 and 0.04 would always be selected with 8.

New Code We have a parameter, sync_center_fractions_accelerations in MaskFunc. If sync_center_fractions_accelerations is False, then now 0.08 can be selected with 8 and 0.04 can be selected with 4.