In deep learning, we encounter the upsample blocks several times, especially when we deal with images.

Consider the following statements from description regarding UPSAMPLE in PyTorch

The algorithms available for upsampling are nearest neighbor and linear, bilinear, bicubic and trilinear for 3D, 4D and 5D input Tensor, respectively.

Where can I read about these upsampling techniques in detail, especially in the context of deep learning?

  • $\begingroup$ They are just standard upsampling or interpolation techniques in computer graphics. Have you tried Google? For example, nearest-neighbour interpolation just copies the same pixel a bunch of times. $\endgroup$
    – user253751
    Sep 17, 2021 at 13:33
  • $\begingroup$ I tried googling for upsampling techniques and found no single material that contains the information. @user253751 $\endgroup$
    – hanugm
    Sep 17, 2021 at 13:35
  • $\begingroup$ really? en.wikipedia.org/wiki/Nearest-neighbor_interpolation $\endgroup$
    – user253751
    Sep 17, 2021 at 13:36
  • $\begingroup$ @user253751 It contains only one right? I want all of them together like a chapter or unit. Is there no such material? $\endgroup$
    – hanugm
    Sep 17, 2021 at 13:37
  • $\begingroup$ en.wikipedia.org/wiki/Interpolation ? $\endgroup$
    – user253751
    Sep 17, 2021 at 13:58

1 Answer 1


Tricky question. In my experience is better to just look for math resources on classic upsampling method, since deep learning papers and books tend to give them for granted, or not something related to AI (they are after all analytic methods). Another reason is probably that the math is not that hard, and already the wikipedia pages offer a good description of the basic methods (nearest-neighbours, bilinear interpolation, bicubic interpolation).

For some others interesting and more advance techniques I found useful this paper: Mathematical Techniques for Image Interpolation even though it's not exhaustive since it doesn't mention well known alternatives to bilinear or bicubic upsampling like Lanczos, so for completeness I would read also A Study of Image Upsampling and Downsampling Filters

Regarding the deep learning part, it's more valuable to search for papers that studies not the upsampling methods themselves, but the artifact they introduce, especially related to tasks like super-resolution. As a starting point I would dig into this blogpost and its references.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .