Commit
·
0431810
1
Parent(s):
01eb839
Update LoadingScript
Browse files- GraySpectrogram.py +2 -2
GraySpectrogram.py
CHANGED
|
@@ -164,9 +164,9 @@ class GraySpectrogram2(datasets.GeneratorBasedBuilder):
|
|
| 164 |
label_list.append(data["label"])
|
| 165 |
|
| 166 |
for idx, (file_path, file_obj) in enumerate(images):
|
| 167 |
-
yield
|
| 168 |
"image": {
|
| 169 |
-
"path":
|
| 170 |
"bytes": file_obj.read()
|
| 171 |
},
|
| 172 |
"caption" : caption_list[idx],
|
|
|
|
| 164 |
label_list.append(data["label"])
|
| 165 |
|
| 166 |
for idx, (file_path, file_obj) in enumerate(images):
|
| 167 |
+
yield file_path, {
|
| 168 |
"image": {
|
| 169 |
+
"path": file_path,
|
| 170 |
"bytes": file_obj.read()
|
| 171 |
},
|
| 172 |
"caption" : caption_list[idx],
|