Upload folder using huggingface_hub
Browse files- GTZANBeatTracking.test.jsonl +0 -0
- GTZANBeatTracking.train.jsonl +0 -0
- GTZANBeatTracking.val.jsonl +0 -0
- convert2jsonl_rhythm.py +1 -4
GTZANBeatTracking.test.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
GTZANBeatTracking.train.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
GTZANBeatTracking.val.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
convert2jsonl_rhythm.py
CHANGED
|
@@ -34,7 +34,6 @@ def get_label_from_jams(path):
|
|
| 34 |
full_data = {
|
| 35 |
"beat": [],
|
| 36 |
"downbeat": [],
|
| 37 |
-
"8th-note": [],
|
| 38 |
"tempo": None,
|
| 39 |
"meter": None
|
| 40 |
}
|
|
@@ -46,10 +45,8 @@ def get_label_from_jams(path):
|
|
| 46 |
full_data['beat'].append(i.time)
|
| 47 |
elif anno_type == 'downbeat':
|
| 48 |
full_data['downbeat'].append(i.time)
|
| 49 |
-
elif anno_type == '8th-note':
|
| 50 |
-
full_data['8th-note'].append(i.time)
|
| 51 |
else:
|
| 52 |
-
print(f"Unknown annotation type: {anno_type}")
|
| 53 |
|
| 54 |
for ann in jam_obj.search(namespace="tag_open"):
|
| 55 |
if "meter" in ann['sandbox']:
|
|
|
|
| 34 |
full_data = {
|
| 35 |
"beat": [],
|
| 36 |
"downbeat": [],
|
|
|
|
| 37 |
"tempo": None,
|
| 38 |
"meter": None
|
| 39 |
}
|
|
|
|
| 45 |
full_data['beat'].append(i.time)
|
| 46 |
elif anno_type == 'downbeat':
|
| 47 |
full_data['downbeat'].append(i.time)
|
|
|
|
|
|
|
| 48 |
else:
|
| 49 |
+
print(f"Unknown annotation type: {anno_type}") # 8-th notes are removed
|
| 50 |
|
| 51 |
for ann in jam_obj.search(namespace="tag_open"):
|
| 52 |
if "meter" in ann['sandbox']:
|