mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Fix Generator
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user