Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilg06 committed Apr 9, 2023
1 parent f59e0ab commit eb5eba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/wav2lip.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def forward(self, audio_sequences, face_sequences, emotion):

audio_embedding = self.audio_encoder(audio_sequences) # B*T, 512, 1, 1
emotion_embedding = self.emotion_encoder(emotion)
ee_needed = torch.mean(emotion_embedding,0).unsqueeze(0)
# ee_needed = torch.mean(emotion_embedding,0).unsqueeze(0)

emotion_embedding = emotion_embedding.view(-1,512,1,1) # B*T, 512, 1, 1

Expand Down Expand Up @@ -147,7 +147,7 @@ def forward(self, audio_sequences, face_sequences, emotion):
else:
outputs = x

return outputs,ee_needed
return outputs


class Wav2Lip_disc_qual(nn.Module):
Expand Down

0 comments on commit eb5eba1

Please sign in to comment.