Transformers
Daporte commited on
Commit
c43a294
·
verified ·
1 Parent(s): 9336925

Update prosody_preprocessor.py

Browse files
Files changed (1) hide show
  1. prosody_preprocessor.py +1 -1
prosody_preprocessor.py CHANGED
@@ -245,7 +245,7 @@ def interpolate(self):
245
  pitch = medfilt(pitch, self.SMOOTH_FACTOR)
246
  try:
247
  if first_sample == 0:
248
- # This is statement fixes the bug that caused the whole f0 to be flattened
249
  if edges[0] == 0:
250
  edges[0] = 1
251
  pitch[:edges[0]-1] = pitch[edges[0]]
 
245
  pitch = medfilt(pitch, self.SMOOTH_FACTOR)
246
  try:
247
  if first_sample == 0:
248
+ # This if statement fixes the bug that caused the whole f0 to be flattened
249
  if edges[0] == 0:
250
  edges[0] = 1
251
  pitch[:edges[0]-1] = pitch[edges[0]]