Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -411,7 +411,7 @@ def CompareMIDIs(input_src_midi, input_trg_midi, input_sampling_resolution, inpu
|
|
411 |
|
412 |
comp_cos_sims = []
|
413 |
|
414 |
-
for i in range(0, comp_length, max(
|
415 |
|
416 |
torch.cuda.empty_cache()
|
417 |
|
|
|
411 |
|
412 |
comp_cos_sims = []
|
413 |
|
414 |
+
for i in range(0, comp_length, max(1, sampling_resolution-sampling_overlap)):
|
415 |
|
416 |
torch.cuda.empty_cache()
|
417 |
|