https://pytorch.org/docs/stable/generated/torch.nn.functional.interpolate.html
torch.nn.functional.interpolate(input, size=None, scale_factor=None, mode='nearest', align_corners=None, recompute_scale_factor=None, antialias=False)
关于上采样
上采样一些常见的方法有:近邻插值(nearest interpolation)、双线性插值(bilinear interpolation),双三次插值(Bicubic interpolation),反卷积(Transposed Convolution),反池化(Unpooling)。
相关学习文章:
https://blog.csdn.net/YuanLei96/article/details/124237627