Rename id_ to identity_

This commit is contained in:
henryruhs
2025-03-11 14:43:10 +01:00
parent fad38da864
commit 14bbece850
4 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -14,14 +14,14 @@ class Generator(nn.Module):
def __init__(self) -> None:
super().__init__()
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')
identity_channels = CONFIG.getint('training.model.generator', 'identity_channels')
if encoder_type == 'unet':
self.encoder = UNet()
if encoder_type == 'unet-pro':
self.encoder = UNetPro()
self.generator = AADGenerator(id_channels, num_blocks)
self.generator = AADGenerator(identity_channels, num_blocks)
self.encoder.apply(init_weight)
self.generator.apply(init_weight)