Datasets:
lcolonn
commited on
fix: correct filepath
Browse files
patfig.py
CHANGED
@@ -60,10 +60,10 @@ class PatFig(GeneratorBasedBuilder):
|
|
60 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
61 |
return [
|
62 |
datasets.SplitGenerator(
|
63 |
-
name=datasets.Split.TRAIN, gen_kwargs={"images_dir": downloaded_files["train_images"], "annotations_dir": downloaded_files["annotations_train"]}
|
64 |
),
|
65 |
datasets.SplitGenerator(
|
66 |
-
name=datasets.Split.TEST, gen_kwargs={"images_dir": downloaded_files["test_images"], "annotations_dir": downloaded_files["annotations_test"]}
|
67 |
),
|
68 |
]
|
69 |
|
|
|
60 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
61 |
return [
|
62 |
datasets.SplitGenerator(
|
63 |
+
name=datasets.Split.TRAIN, gen_kwargs={"images_dir": f'{downloaded_files["train_images"]}/train', "annotations_dir": f'{downloaded_files["annotations_train"]}/annotations_train.json'}
|
64 |
),
|
65 |
datasets.SplitGenerator(
|
66 |
+
name=datasets.Split.TEST, gen_kwargs={"images_dir": f'{downloaded_files["test_images"]}/train', "annotations_dir": f'{downloaded_files["annotations_test"]}/annotations_test.json'}
|
67 |
),
|
68 |
]
|
69 |
|