Skip to content

Commit

Permalink
Merge pull request #1150 from voxel51/iss-1149
Browse files Browse the repository at this point in the history
Fixing #1149
  • Loading branch information
benjaminpkane authored Jul 31, 2021
2 parents 171d4c1 + 07d6604 commit 32911f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 3 additions & 7 deletions fiftyone/utils/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/intensive/dataset_zoo_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 32911f9

Please sign in to comment.