diff --git a/model/modules.py b/model/modules.py index 9933725ffc..5adb2cacc2 100644 --- a/model/modules.py +++ b/model/modules.py @@ -121,7 +121,7 @@ def forward( x = x + pitch_embedding if self.energy_feature_level == "phoneme_level": energy_prediction, energy_embedding = self.get_energy_embedding( - x, energy_target, src_mask, p_control + x, energy_target, src_mask, e_control ) x = x + energy_embedding @@ -143,7 +143,7 @@ def forward( x = x + pitch_embedding if self.energy_feature_level == "frame_level": energy_prediction, energy_embedding = self.get_energy_embedding( - x, energy_target, mel_mask, p_control + x, energy_target, mel_mask, e_control ) x = x + energy_embedding