Question 1: Short answer
mediumAI-checkedSegmentationAn FCN upsamples its backbone's feature map with a transposed convolution. For a input image, the ResNet-18 backbone and the convolution give a map with 21 class channels.
import torch
from torch import nn
conv_trans = nn.ConvTranspose2d(21, 21, kernel_size=64, padding=16, stride=32)
X = torch.rand(1, 21, 15, 20)
print(conv_trans(X).shape)
What is the last number printed, the output width?