sereich commited on
Commit
2ce231c
·
1 Parent(s): 9b33c6e

Correctly calculate overlap

Browse files
Files changed (1) hide show
  1. processAudio.py +2 -2
processAudio.py CHANGED
@@ -57,8 +57,8 @@ def upscaleAudio(lr_sig, checkpoint_file: str, sr=44100, hr_sr=44100, model_name
57
 
58
  pr_chunks = []
59
 
60
- lr_segment_overlap_samples = int(sr*SEGMENT_OVERLAP_RATIO)
61
- hr_segment_overlap_samples = int(hr_sr*SEGMENT_OVERLAP_RATIO)
62
 
63
  model.eval()
64
  pred_start = time.time()
 
57
 
58
  pr_chunks = []
59
 
60
+ lr_segment_overlap_samples = int(sr*SEGMENT_OVERLAP_RATIO*SEGMENT_DURATION_SEC)
61
+ hr_segment_overlap_samples = int(hr_sr*SEGMENT_OVERLAP_RATIO*SEGMENT_DURATION_SEC)
62
 
63
  model.eval()
64
  pred_start = time.time()