new commits

This commit is contained in:
liuhaozhe6788
2023-06-15 11:33:58 +08:00
parent e05b534129
commit 8f6fc71c72
2 changed files with 2 additions and 2 deletions

View File

@@ -458,7 +458,7 @@ class Tacotron(nn.Module):
if t == 0:
first_stop_token = stop_tokens[0]
# Stop the loop when all stop tokens in batch exceed threshold compared with the 1st token and the sequence's length exceeds threshold
if (stop_tokens > first_stop_token * 4e3).all() and t > (20 * self.r): break
if (stop_tokens > first_stop_token * 2e3).all() and t > (20 * self.r): break
# if (stop_tokens > 0.5).all() and t > (20 * self.r): break
if torch.cuda.is_available():
torch.cuda.empty_cache()

View File

@@ -46,5 +46,5 @@ voc_overlap = 400 # number of samples for crossfading between
# Output Noise Reduce
prop_decrease_low_freq = 0.6 # prop decrease for low dominant frequency
prop_decrease_high_freq = 0.9 # prop decrease for high dominant frequency
dry=1 # dry ratio for facebook denoiser
dry=0.1 # dry ratio for facebook denoiser
sex = -1