Skip to content

Commit d607eb2

Browse files
committed
Merge remote-tracking branch 'paarth/experimentalt5tts_finalizedtransformer_inferencehackclean' into rfejgin_dpo_repetition_bugfix
2 parents bd05f17 + 8766f7d commit d607eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nemo/collections/tts/models/t5tts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def infer_batch(self, batch, max_decoder_steps=500, temperature=0.7, topk=80, us
861861
last_attended_timesteps.append(text_time_step_attended)
862862
cross_attention_scores_all_timesteps.append(cross_attention_scores)
863863
# if idx % 20 == 0:
864-
# print("At timesteps", text_time_step_attended, context_tensors['text_lens'])
864+
# print("At timesteps", idx, text_time_step_attended, context_tensors['text_lens'])
865865

866866
if apply_attention_prior and idx >= 10:
867867
eps = prior_epsilon
@@ -887,7 +887,7 @@ def infer_batch(self, batch, max_decoder_steps=500, temperature=0.7, topk=80, us
887887
_attn_prior[bidx, 0, _timestep] = eps
888888

889889
unfinished_texts[bidx] = False
890-
if text_time_step_attended[bidx] < context_tensors['text_lens'][bidx] - 10:
890+
if text_time_step_attended[bidx] < context_tensors['text_lens'][bidx] - 6:
891891
# This means the sentence has definitely not ended
892892
if bidx not in finished_texts_counter and bidx not in end_indices:
893893
unfinished_texts[bidx] = True

0 commit comments

Comments
 (0)