mirror of
https://github.com/liuhaozhe6788/voice-cloning-collab.git
synced 2026-05-18 05:04:51 +02:00
new commits
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user