mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Stop test time model with stop_token
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ class Decoder(nn.Module):
|
||||
if t >= T_decoder:
|
||||
break
|
||||
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
|
||||
elif t > self.max_decoder_steps:
|
||||
print(" !! Decoder stopped with 'max_decoder_steps'. \
|
||||
|
||||
Reference in New Issue
Block a user