Git Product home page Git Product logo

openimage_master's Introduction

Open Images Master

Simple Python script designed to extract labels and associated metadata on the Open Images Dataset.

With this simple command line tool, you can specify one label you wish to use for your machine learning application. The script will automatically create a folder with all relevant images extracted from the dataset. It will also extract the metadata associated with it, including the bounding boxes of the associated label.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Implementation obviously requires the 9 parts of the dataset zip files to be downloaded in a data directory created at the root of the git folder. Metadata files (class-descriptions-boxable.csv and train-annotations-bbox.csv) are also required.

Prerequisites

What things you need to install the software and how to install them. Python3 libraries are in requirements.txt for easy installation with pip.

Earlier program/package versions might work too but haven't been tested.

Installing

A step by step series of examples that tell you how to get a development env running.

Simply clone the repository.

git clone https://github.com/julienstark/openimages_master.git

Create a data/ folder at the root of the git project and move the dataset zip files there as well as the metadata files.

mkdir openimages_master/data
mv train_0*.zip openimages_master/data
mv class-descriptions-boxable.csv train-annotations-bbox.csv openimages_master/data

And that's it !

Running

python3 main.py --label 'label' --folder 'folder'

Replace "label" by the label you wish to extract. Available labels are in the data folder > class-description-boxable.csv.

Replace "folder" by the absolute path of the folder you wish to have the images and metadata extracted to.

IMPORTANT

Please make sure that you have enough space on the extracted destination since some labels contain several thousand of images.

During the extraction process, the implementation temporarily extracts the content of each zip files, one at a time, to a temporary folder. This temporary folder is located in the directory where the main.py file is executed. Please make sure that you have enough disk space at this location to avoid program crash during extraction. All temporary files are deleted at the end of the program.

openimage_master's People

Contributors

julienstark avatar

Watchers

James Cloos avatar

Forkers

tasksyour

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.