diffusion_models.mri_forward.undersampling_mask.naive_undersampling1d_v

diffusion_models.mri_forward.undersampling_mask.naive_undersampling1d_v(size, undersampling_ratio)[source]

Regular subsampling of vertical lines with given undersampling ratio.

Parameters:
  • size (tensor) – shape tensor

  • undersampling_ratio (int) – integer representing the acceleration in both dimensions

Returns:

2D tensor with shape of last 2 dim of size

Return type:

Tensor