不知所云。故参考GitHub中的PyTorch源码源码: // Unnormalizes a coordinate from the -1 to +1 scale to its pixel index value, // where we view each pixel as an area between (idx - 0.5) and (idx + 0.5). // if align_corners: -1 and +1 get sent to the centers of the corner pix...
cv2.imwrite("demo_1.jpg", image) https://pytorch.org/docs/stable/nn.html?highlight=upsample#torch.nn.Upsample that is: With align_corners = True, the linearly interpolating modes (linear, bilinear, bicubic, and trilinear) don’t proportionally align the output and input pixels, and thus th...