|
Have you labeled a few objects? Before downloading the dataset, we ask that you label some
images using the online annotation tool. It
only takes a few minutes to label several objects. In return, you will
receive thousands of annotated images. Also, the new annotations that
you just provided will be immediately included in the downloaded
dataset. LabelMe is a WEB-based image annotation tool that allows researchers to label images and share the annotations with the rest of the community. If you use the database, we only ask that you contribute to it, from time to time, by using the labeling tool. B. C. Russell, A. Torralba, K. P. Murphy, W. T. Freeman, LabelMe: a database and web-based tool for image annotation. MIT AI Lab Memo AIM-2005-025, September, 2005. (PDF) There are three ways to download the images and annotations: (1) via the LabelMe Matlab toolbox, allowing you to customize the portion of the database that you want to download, (2) by clicking on links pointing to a set of large tar files, (3) via the LabelMe Matlab toolbox, without directly downloading the images. Once you have installed the database, you can use the LabelMe Matlab toolbox to read the annotation files and query the images to extract specific objects. Option 1: Customizable download using the LabelMe Matlab toolbox This is the most flexible way of downloading the dataset. It requires using the Matlab toolbox. Follow the next steps: Step 1 Download the LabelMe Matlab toolbox and add the toolbox to the Matlab path. Step 2 The function LMinstall will download the database. There are three ways to use this function:
HOMEIMAGES = '/desired/path/to/Images'; where "/desired/path/to/" is the desired location where the annotations and images will be stored. This process will create the following directory structure under "/desired/path/to/":
where
HOMEIMAGES = '/desired/path/to/Images'; This will download only one folder from the collection. You can see the complete list of folders here.
LMinstall (folders, images, HOMEIMAGES, HOMEANNOTATIONS); Before downloading the dataset, we only ask you to label some images using the annotation tool online. Any new labels that you will add, will be inmediately ready for download. Step 1 Download the annotations into a local folder: Annotations (<5MB) updated dynamically; this may take a minute to load Step 2 Uncompress the annotation tarball. This process will create the following directory structure:
./Annotations
The annotations are stored as XML files and are extremely easy to parse. Note that the annotatiions tarball is dynamically created, so you will get an updated version with each download. Step 3 Download the desired sets of images into a local folder. Create a directory calledImages and untar the image tar files
into this folder. Your directory structure should look like the
following:
./Images
Step 4 Download the LabelMe Matlab toolbox. Option 3: Access the online database directly with the LabelMe Matlab toolbox Before downloading the dataset, we only ask you to label some images using the annotation tool online. Any new labels that you will add, will be inmediately ready for download. If you use the LabelMe Matlab toolbox, it is not necesary to download the database. You can use the online images and annotations in the same way as if they were on your local hard drive. This might be slow, but it will let you explore the database before downloading it. If you plan to use the database extensively, it is better to download a local copy for yourself. Here are a few Matlab commands that show how to use the online database: HOMEIMAGES = 'http://people.csail.mit.edu/brussell/research/LabelMe/Images';HOMEANNOTATIONS = 'http://people.csail.mit.edu/brussell/research/LabelMe/Annotations'; D = LMdatabase(HOMEANNOTATIONS); % This will build an index, which will take few minutes. % Now you can visualize the images LMplot(D, 1, HOMEIMAGES); % Or read an image [annotation, img] = LMread(D, 1, HOMEIMAGES); You can query the database to select the images you want and install only those ones. For instance, if you are interested only in images containing cars, you can run the following:
% First create the list of images that you want: |