Extend Unet with more layers

This commit is contained in:
henryruhs
2025-03-11 14:43:10 +01:00
parent 5056b8df75
commit dcc5ccccd7
3 changed files with 46 additions and 18 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ class Generator(nn.Module):
num_blocks = CONFIG.getint('training.model.generator', 'num_blocks')
if encoder_type == 'unet':
self.encoder = UNet()
self.encoder = UNet(output_size)
if encoder_type == 'unet-pro':
self.encoder = UNetPro()
self.encoder = UNetPro(output_size)
self.generator = AAD(identity_channels, output_channels, output_size, num_blocks)
self.encoder.apply(init_weight)
self.generator.apply(init_weight)