Fix Generator

This commit is contained in:
henryruhs
2025-02-22 10:43:08 +01:00
parent dc0abff0ce
commit 206a1411d1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ CONFIG.read('config.ini')
class Generator(nn.Module):
def __init__(self) -> None:
super(Generator, self).__init__()
encoder_type = CONFIG.getint('training.model.generator', 'encoder_type')
encoder_type = CONFIG.get('training.model.generator', 'encoder_type')
id_channels = CONFIG.getint('training.model.generator', 'id_channels')
num_blocks = CONFIG.getint('training.model.generator', 'num_blocks')
+1 -1
View File
@@ -59,7 +59,7 @@ class UNet(nn.Module):
class UNetPro(UNet):
def __init__(self) -> None:
super(UNetPro, self).__init__()
super(UNet, self).__init__()
self.resnet = models.resnet34(pretrained = True)
self.down_samples = self.create_down_samples(self)
self.up_samples = self.create_up_samples()