facebookresearch / fastMRI

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

Fix NMSE and PSNR aggregation in validation loop #130

Closed mmuckley closed 3 years ago

mmuckley commented 3 years ago

This fixes metric aggregation for NMSE and PSNR in the validation loop of the Lightning modules, which likely caused Issue #129. Previously, NMSE was being normalized with the slice norm and PSNR was using the maximum value of the slice. Both of these should have been using volume metrics to match the methodology in the fastMRI paper. This PR fixes the volume metrics.

Previous U-Net Knee Single-Coil NMSE: 0.04213 PSNR: 27.02

This PR (epoch 43) NMSE: 0.0323 PSNR: 32.34