Upsampling#
- class deepinv.physics.Upsampling(img_size, filter=None, factor=2, padding='circular', device='cpu', **kwargs)[source]#
Bases:
DownsamplingUpsampling operator.
This operator performs the operation
\[y = h^T * S^T (x)\]where \(S^T\) is the adjoint of the subsampling operator and \(h\) is a low-pass filter.
- Parameters:
filter (torch.Tensor, str, None) β Upsampling filter. It can be
'gaussian','bilinear','bicubic','sinc'or a customtorch.Tensorfilter. IfNone, no filtering is applied.factor (int) β upsampling factor
padding (str) β options are
'circular','replicate'and'reflect'.device (torch.device, str) β Device on which the physicsβ buffers will be created. To change the device of the physics, please use
physics.to(device).