Phase2PhaseSplittingMaskGenerator#

class deepinv.physics.generator.Phase2PhaseSplittingMaskGenerator(img_size, device='cpu', rng=None)[source]#

Bases: BernoulliSplittingMaskGenerator

Phase2Phase splitting mask generator for dynamic data.

To be exclusively used with deepinv.loss.mri.Phase2PhaseLoss. Splits dynamic data (i.e. data of shape (B, C, T, H, W)) into even and odd phases in the T dimension.

Used in Eldeniz et al.[1].

If input_mask not passed, a blank input mask is used instead.

Parameters:
  • img_size (tuple[int]) – size of the tensor to be masked without batch dimension of shape (C, T, H, W)

  • device (str, torch.device) – device where the tensor is stored (default: ‘cpu’).

  • rng (torch.Generator) – unused.


References: