mirror of https://github.com/coqui-ai/TTS.git
Add init_from_config to GAN
This commit is contained in:
parent
353f913efc
commit
e1b4c4ca43
|
@ -361,3 +361,7 @@ class GAN(BaseVocoder):
|
||||||
def get_criterion(self):
|
def get_criterion(self):
|
||||||
"""Return criterions for the optimizers"""
|
"""Return criterions for the optimizers"""
|
||||||
return [GeneratorLoss(self.config), DiscriminatorLoss(self.config)]
|
return [GeneratorLoss(self.config), DiscriminatorLoss(self.config)]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def init_from_config(config: Coqpit) -> "GAN":
|
||||||
|
return GAN(config)
|
Loading…
Reference in New Issue