Add files via upload

This commit is contained in:
Ναρουσέ·μ·γιουμεμί·Χινακάννα 2023-05-18 15:55:25 +08:00 committed by GitHub
parent c576ed8965
commit 141b5c4a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class SynthesizerTrn(nn.Module):
self.speaker_map = torch.zeros((n_speakers_mix, 1, 1, self.gin_channels))
for i in range(n_speakers_mix):
self.speaker_map[i] = self.emb_g(torch.LongTensor([[i]]))
self.speaker_map.unsqueeze(0)
self.speaker_map = self.speaker_map.unsqueeze(0)
self.export_mix = True
def forward(self, c, f0, mel2ph, uv, noise=None, g=None, cluster_infer_ratio=0.1):