Correctly calculate overlap
Browse files- 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()
|