CT image compression (a) Implement the simplified DCT compression process above for n = 2, 4, and 8 and apply it to the attached image. Show the reconstructed images for these three different cases. [3 images] Compute the PSNR values of the three re
import torch.nn.functional as F
import torch.nn as nn
F.upsample(input, size=None, scale_factor=None,mode=’nearest’, align_corners=None)
rUpsamples the input to either the given :attr:`size` or the given
:attr:`scale_factor`
The algorithm used