Update mmod2.py
Browse files
mmod2.py
CHANGED
|
@@ -104,14 +104,8 @@ class Mmod2(datasets.GeneratorBasedBuilder):
|
|
| 104 |
# metadata_path = datasets.download(metadata_path)
|
| 105 |
# with open(metadata_path, encoding="utf-8") as f:
|
| 106 |
# files_to_keep = set(f.read().split("\n"))
|
| 107 |
-
|
| 108 |
-
if len(images) > 0:
|
| 109 |
-
file_name = images.pop()
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
iter_list = []
|
| 113 |
|
| 114 |
-
for file_name in
|
| 115 |
# print(f"{file_name = }")
|
| 116 |
|
| 117 |
# get file name without extension
|
|
|
|
| 104 |
# metadata_path = datasets.download(metadata_path)
|
| 105 |
# with open(metadata_path, encoding="utf-8") as f:
|
| 106 |
# files_to_keep = set(f.read().split("\n"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
for file_name in images:
|
| 109 |
# print(f"{file_name = }")
|
| 110 |
|
| 111 |
# get file name without extension
|