in src/image_gen_aux/preprocessors/teed/teed.py [0:0]
def make_deconv_layers(self, in_features, up_scale):
layers = []
all_pads = [0, 0, 1, 3, 7]
for i in range(up_scale):
kernel_size = 2**up_scale
pad = all_pads[up_scale] # kernel_size-1
out_features = self.compute_out_features(i, up_scale)
layers.append(nn.Conv2d(in_features, out_features, 1))
layers.append(Smish())
layers.append(nn.ConvTranspose2d(out_features, out_features, kernel_size, stride=2, padding=pad))
in_features = out_features
return layers