mirror of https://github.com/coqui-ai/TTS.git
Stop test time model with stop_token
This commit is contained in:
parent
bbad1ce28d
commit
5ce80d052c
|
@ -309,7 +309,7 @@ class Decoder(nn.Module):
|
||||||
if t >= T_decoder:
|
if t >= T_decoder:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if t > 1 and is_end_of_frames(output.view(self.r, -1), alignment, self.eps):
|
if t > 1 and stop_token > 0.5:
|
||||||
break
|
break
|
||||||
elif t > self.max_decoder_steps:
|
elif t > self.max_decoder_steps:
|
||||||
print(" !! Decoder stopped with 'max_decoder_steps'. \
|
print(" !! Decoder stopped with 'max_decoder_steps'. \
|
||||||
|
|
Loading…
Reference in New Issue