-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
46 lines (39 loc) · 1.2 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import time
from helpers import get_current_datetime_string, get_run_guid, sdr_folder
start_time = time.time()
# You can extend this dict to your liking
# sdr_folder accept 'glob' string as parameter
test_data_glob = {
"bass": {
"original": 'multisong_musdb18/*_bass.wav',
"calculated": 'test_ouput/*_bass.wav'
},
# "drums": {
# "original": '',
# "calculated": ''
# },
# "other": {
# "original": '',
# "calculated": ''
# },
# "vocals": {
# "original": '',
# "calculated": ''
# },
# "instrumental": {
# "original": '',
# "calculated": ''
# },
# "mixed": {
# "original": '',
# "calculated": ''
# },
}
run_datetime = get_current_datetime_string()
run_guid = get_run_guid()
title = "MUSDB_18_HQ"
description = 'original stem'
for stem_name in test_data_glob:
sdr_folder(glob_original=test_data_glob[stem_name]["original"],
glob_calculated=test_data_glob[stem_name]["calculated"], stem_name=stem_name, run_datetime=run_datetime, run_guid=run_guid, title=title, description=description)
print("Finished. Elapsed time: {:.2f} sec".format(time.time() - start_time))