Datasets:
WIP updates `_generate_examples`.
Browse files- nist_lpbf_scan_tracks.py +5 -5
nist_lpbf_scan_tracks.py
CHANGED
@@ -180,11 +180,11 @@ class AMDataset(datasets.GeneratorBasedBuilder):
|
|
180 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
181 |
|
182 |
for index, file in enumerate(files):
|
183 |
-
with open(file, "rb") as f:
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
|
189 |
# with open(filepath, encoding="utf-8") as f:
|
190 |
# for key, row in enumerate(f):
|
|
|
180 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
181 |
|
182 |
for index, file in enumerate(files):
|
183 |
+
# with open(file, "rb") as f:
|
184 |
+
# track = pickle.load(f)
|
185 |
+
yield index, {
|
186 |
+
"track": index
|
187 |
+
}
|
188 |
|
189 |
# with open(filepath, encoding="utf-8") as f:
|
190 |
# for key, row in enumerate(f):
|