1
0
forked from mrq/DL-Art-School

fix text-voice-clip bug

This commit is contained in:
James Betker 2022-01-08 08:55:00 -07:00
parent 34774f9948
commit 438dd9ed33

View File

@ -76,7 +76,6 @@ class VoiceCLIP(nn.Module):
speech_tokens = speech_tokens[:, :max_mel_len]
b, device = text.shape[0], text.device
if self.text_mask_percentage > 0:
text_mask = torch.rand_like(text.float()) > self.text_mask_percentage
text_emb = self.text_emb(text)