Datasets:
Size:
10K<n<100K
License:
MuGeminorum
commited on
Commit
•
4bbafbb
1
Parent(s):
d9324d8
fix iter_files
Browse files- music_genre.py +1 -1
music_genre.py
CHANGED
@@ -104,7 +104,7 @@ class music_genre(datasets.GeneratorBasedBuilder):
|
|
104 |
|
105 |
dataset = []
|
106 |
for path in files:
|
107 |
-
if os.path.basename(path).endswith(".jpg"):
|
108 |
dataset.append({
|
109 |
'mel': path,
|
110 |
'cqt': path.replace('\\mel\\', '\\cqt\\').replace('/mel/', '/cqt/'),
|
|
|
104 |
|
105 |
dataset = []
|
106 |
for path in files:
|
107 |
+
if os.path.basename(path).endswith(".jpg") and 'mel' in path:
|
108 |
dataset.append({
|
109 |
'mel': path,
|
110 |
'cqt': path.replace('\\mel\\', '\\cqt\\').replace('/mel/', '/cqt/'),
|