Update SkyScenes.py
Browse files- SkyScenes.py +2 -2
SkyScenes.py
CHANGED
|
@@ -98,8 +98,8 @@ class SKYSCENES(datasets.GeneratorBasedBuilder):
|
|
| 98 |
|
| 99 |
def _generate_examples(self, images, metadata_path):
|
| 100 |
"""Generate images and labels for splits."""
|
| 101 |
-
with open(metadata_path, encoding="utf-8") as f:
|
| 102 |
-
|
| 103 |
# print('KEEP',files_to_keep)
|
| 104 |
for file_path, file_obj in images:
|
| 105 |
# print('FILE',file_path)
|
|
|
|
| 98 |
|
| 99 |
def _generate_examples(self, images, metadata_path):
|
| 100 |
"""Generate images and labels for splits."""
|
| 101 |
+
# with open(metadata_path, encoding="utf-8") as f:
|
| 102 |
+
# files_to_keep = set(f.read().split("\n"))
|
| 103 |
# print('KEEP',files_to_keep)
|
| 104 |
for file_path, file_obj in images:
|
| 105 |
# print('FILE',file_path)
|