mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
fix multiband melgan inference
This commit is contained in:
@@ -29,10 +29,11 @@ class MultibandMelganGenerator(MelganGenerator):
|
||||
def pqmf_synthesis(self, x):
|
||||
return self.pqmf_layer.synthesis(x)
|
||||
|
||||
@torch.no_grad()
|
||||
def inference(self, cond_features):
|
||||
cond_features = cond_features.to(self.layers[1].weight.device)
|
||||
cond_features = torch.nn.functional.pad(
|
||||
cond_features,
|
||||
(self.inference_padding, self.inference_padding),
|
||||
'replicate')
|
||||
return self.pqmf.synthesis(self.layers(cond_features))
|
||||
return self.pqmf_synthesis(self.layers(cond_features))
|
||||
|
||||
Reference in New Issue
Block a user