This commit is contained in:
yumoqing 2024-10-22 11:44:09 +08:00
parent 16265edbf4
commit d8de885311

View File

@ -84,10 +84,10 @@ class F5TTS:
vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz") vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz")
self.vocos = vocos self.vocos = vocos
self.F5TTS_model_cfg = dict( self.F5TTS_model_cfg = dict(
dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4 dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4
) )
self.E2TTS_model_cfg = dict(dim=1024, depth=24, heads=16, ff_mult=4) self.E2TTS_model_cfg = dict(dim=1024, depth=24, heads=16, ff_mult=4)
self.model= self.load_model(self.modelname) self.model= self.load_model(self.modelname)