Closed QiaoranC closed 6 years ago
The MSC class now refers only height size (see this block). Please modify the part like:
input_size = x.shape[2:] # returns (height, width)
size100 = output100.shape[2:]
size075 = [int(s * 0.75) for s in input_size]
size050 = [int(s * 0.5) for s in input_size]
self.interp075 = nn.Upsample(size=size075, mode='bilinear')
self.interp050 = nn.Upsample(size=size050, mode='bilinear')
self.interp100 = nn.Upsample(size=size100, mode='bilinear')
Hi: Thanks for the DeepLabV3+ in pytorch implementation, it may the first DeepLabV3+ pytorch implementation in github and i wait for this for a while.
My problem is it works fine in the default input size (513,513), But when i tried to implement the DeepLabV3+ with a different input size, like (256,513). it given the following error:
My pytorch version is '0.3.1' Any suggestion to support customize input?