facebookresearch / fastMRI

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

Fix annotation extraction #310

Closed mmuckley closed 1 year ago

mmuckley commented 1 year ago

Fixes #309 by using out-of-place updates for raw_samples in AnnotatedSliceDataset.

mmuckley commented 1 year ago

Thanks for checking @Duplums. I moved a deepcopy to the start of the annotation logic to try to make it a bit more clean. I'll go ahead and merge this fix and push a bug release to PyPI next week. Feel free to open another PR if you notice anything to follow-up.