# What we should use align\_corners = False

**URL:** <https://discuss.pytorch.org/t/what-we-should-use-align-corners-false/22663>\
**Category:** vision\
**Created:** [August 8, 2018, 12:51pm UTC](https://discuss.pytorch.org/t/what-we-should-use-align-corners-false/22663 "2018-08-08T12:51:54Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![bkkm16](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/b/ebca7d/32.png) [@bkkm16](https://discuss.pytorch.org/u/bkkm16)\
**Post date:** [March 24, 2019, 7:33pm UTC](https://discuss.pytorch.org/t/what-we-should-use-align-corners-false/22663/9 "2019-03-24T19:33:09Z")

</div>

![align_corners](https://discuss.pytorch.org/uploads/default/original/2X/6/6a242715685b8192f07c93a57a1d053b8add97bf.png)

Here is a simple illustration I made showing how a 4x4 image is upsampled to 8x8.

When `align_corners=True`, pixels are regarded as a grid of points. Points at the corners are aligned.

When `align_corners=False`, pixels are regarded as 1x1 areas. Area boundaries, rather than their centers, are aligned.

---

_[View the full topic](https://discuss.pytorch.org/t/what-we-should-use-align-corners-false/22663)._
