From 7e4b85a11881fe2eba5adb8bda1b3e33692b4e64 Mon Sep 17 00:00:00 2001 From: brimoor Date: Sat, 31 Jul 2021 09:39:10 -0400 Subject: [PATCH 1/2] fixing bug --- fiftyone/utils/coco.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/fiftyone/utils/coco.py b/fiftyone/utils/coco.py index e61e7fcdf9..a184303efb 100644 --- a/fiftyone/utils/coco.py +++ b/fiftyone/utils/coco.py @@ -1479,13 +1479,9 @@ def download_coco_dataset_split( else: logger.info("Found %s at '%s'", anno_type, full_anno_path) - ( - _, - all_classes, - _, - images, - annotations, - ) = load_coco_detection_annotations(full_anno_path) + # This will store the loaded annotations, if they were necessary + d = None + all_classes = None # # Download images to `images_dir`, if necessary From 07d660413b251aaadddc42bedf859fe8906da92d Mon Sep 17 00:00:00 2001 From: brimoor Date: Sat, 31 Jul 2021 10:06:58 -0400 Subject: [PATCH 2/2] downloading entire split at the end --- tests/intensive/dataset_zoo_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/intensive/dataset_zoo_tests.py b/tests/intensive/dataset_zoo_tests.py index c5ac14f445..ca18ce916a 100644 --- a/tests/intensive/dataset_zoo_tests.py +++ b/tests/intensive/dataset_zoo_tests.py @@ -205,6 +205,9 @@ def test_coco_2017(): assert counts["person"] >= 25 dataset.delete() + dataset = foz.load_zoo_dataset("coco-2017", split="validation") + dataset.delete() + def test_open_images_v6(): dataset = foz.load_zoo_dataset(