Skip to content

TensorFlow MRI 0.19.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Jun 13:08
· 58 commits to master since this release
b1fec86

Release 0.19.0

This release bumps the supported TensorFlow version to 2.9.

Major Features and Improvements

  • tfmri.image:

    • Added new arguments batch_dims and image_dims to
      image_gradients, gradient_magnitude, psnr, ssim and
      ssim_multiscale.
    • Argument rank of psnr, ssim and ssim_multiscale is now
      deprecated. To update, use image_dims instead.
    • image_gradients and gradient_magnitude now support complex inputs.
  • tfmri.losses:

    • Added new arguments batch_dims and image_dims to all image quality
      losses. Argument rank is now deprecated (use image_dims instead).
    • Added new arguments multichannel and complex_part to all image
      quality losses. These mirror the behaviour of the corresponding metrics
      and allows for single-channel inputs and extraction of parts from complex
      numbers, respectively.
    • The canonical API names StructuralSimilarityLoss and
      MultiscaleStructuralSimilarityLoss have been
      changed to SSIMLoss and SSIMMultiscaleLoss, respectively. The
      old names are still available, but may be removed in the future.
  • tfmri.metrics:

    • Image quality metrics can now accept complex inputs without also specifying
      complex_part, in which case the unmodified complex values will be passed
      to the downstream function. This may not be supported for all metrics.
    • Added new arguments batch_dims and image_dims to all image quality
      metrics. Argument rank is now deprecated (use image_dims instead).
    • The canonical API names PeakSignalToNoiseRatio,
      StructuralSimilarity and MultiscaleStructuralSimilarity have been
      changed to PSNR, SSIM and SSIMMultiscale, respectively. The
      old names are still available, but may be removed in the future.
  • tfmri.recon:

    • Added new argument preserve_phase to tfmri.recon.pf. This allows
      the user to recover the phase as well as the magnitude during partial
      Fourier reconstruction. Argument return_complex has the same behaviour
      and is now deprecated.
    • Added new aliases adjoint (for adj), least_squares
      (for lstsq) and partial_fourier (for pf). These are now the
      canonical aliases, but the old ones will still be supported.
  • tfmri.signal:

    • Added new ops dwt and idwt to compute the N-dimensional discrete
      wavelet transform and its inverse, respectively.
  • tfmri.plot:

    • Added new argument norm to image_sequence, tiled_image and
      tiled_image_sequence. This allows the user to specify the scaling
      to be applied before the colormap.

Bug Fixes and Other Changes

  • Fixed a bug with k-space weighting in homodyne detection method of
    tfmri.recon.partial_fourier.
  • Like core TensorFlow, we now compile with _GLIBCXX_USE_CXX11_ABI=1.
  • Like core TensorFlow, Python wheels now conform to manylinux2014, an
    upgrade from manylinux2010.