Artificial Intelligence

Google's Open Images: Now easier to download and evaluate with FiftyOne

Efficiently download Open Images and evaluate your models using Open Images-style evaluation with FiftyOne

Eric Hofesmann
May 12, 20214 min read
Open Images dataset downloaded and visualized in FiftyOne (Image by author)
Open Images dataset downloaded and visualized in FiftyOne (Image by author)

Computer vision models have become more data-hungry than ever before. Developing your own model requires you to either collect and annotate massive amounts of data yourself or turn to public datasets hoping that they contain relevant data for your task. The team behind Open Images set out to provide a massive data lake for anyone to access. By only curating images under a Creative Commons Attribution (CC-BY) license, Open Images can be used by anyone who is interested.

With image-level labels, segmentations, visual relationships, localized narratives, and 15x more object detections than the next largest detection dataset, Open Images can be tempting to add to your data lake and training workflows. However, learning and incorporating a new dataset format into your workflow is often tedious and time-consuming. Previously, the procedure to download Open Images consisted of writing custom scripts to download and parse the images and labels you want. This has spawned multiple tools to aid in loading the dataset, but they each have serious drawbacks like not supporting segmentations and relationships, no visualization capabilities, and not being able to specify the download format.

At Voxel51, we have collaborated with Google to create an easy-to-use source for downloading Open Images by incorporating it into the Dataset Zoo of our open-source ML tool, [FiftyOne](http://fiftyone.ai/). With FiftyOne, you can specify exactly the subset of Open Images you want to download, export it into dozens of different formats, visualize it in the FiftyOne App, and even evaluate your models with Open Images-style object detection evaluation.

This blog post walks you through how to use FiftyOne to:

Before we begin, make sure to install FiftyOne:

text

Putting this functionality to use, we can curate datasets for specific tasks without needing to download the entire dataset or parse any raw annotation files. For example, if we wanted to train a detector for wooden objects, we can specify that we only want samples from Open Images containing an object with the visual relationship annotated as Wooden:

If you then want to import your data back into FiftyOne and the dataset follows one of the supported formats, that can also be done in one line of code:

Even if your dataset is in a completely custom format, it is still easy to load it into FiftyOne.

Note: Running this model requires TensorFlow 1.14.

text

We can now run Open Images-style evaluation on our dataset and predictions:

The results object that is returned contains everything we need from mAP, to PR curves, to confusion matrices.

We can now view an interactive confusion matrix where if we click on a cell, the FiftyOne App will be updated showing only samples existing in that cell. So, for example, if we click on the cell containing ground truth "Dog" detections matched with predicted "Cat" detections, we can gain insight into the failure modes of our model:

Selecting a sample and sorting by similarity in FiftyOne (Image by author)
Selecting a sample and sorting by similarity in FiftyOne (Image by author)

Once we have thoroughly explored our dataset and found aspects of it that we want to analyze further or improve, it is easy to tag individual samples or labels in order to isolate them for downstream use cases.

Tagging samples in FiftyOne (Image by author)
Tagging samples in FiftyOne (Image by author)

Summary

[[Open Images](https://storage.googleapis.com/openimages/web/download.html)](https://storage.googleapis.com/openimages/web/download.html) is a massive yet thoroughly labeled dataset that can make a useful addition to your data lake and model training workflows. The easiest way to download and explore Open Images is with FiftyOne. With datasets as large as Open Images, hands-on evaluation of your model results can be difficult. FiftyOne makes it easy to understand your dataset, find failure modes in your model, and reveal patterns in your data by visualizing embeddings.


About Voxel51

Headquartered in Ann Arbor, Michigan, and founded in 2016 by Dr. Jason Corso and Dr. Brian Moore, Voxel51 is an AI software company that is democratizing access to software 2.0 by providing the open core software building blocks that enable computer vision and machine learning engineers to rapidly engineer data-powered workflows.

Want to learn more? Check us out at fiftyone.ai.

Related Articles