首页 > LabelMe图像数据集下载

LabelMe图像数据集下载

Download MATLAB Toolbox for the LabelMe Image Database

利用Matlab Toolbox工具箱下载图像库

 

一、下载Matlab Toolbox工具箱

1. Github repository

We maintain the latest version of the toolbox on github. To pull the latest version, make sure that "git" is installed on your machine and then run "git clone https://github.com/CSAILVision/LabelMeToolbox.git" on the command line. You can refresh your copy to the latest version by running "git pull" from inside the project directory.

2. Zip file

The zip file is a snapshot of the latest source code on github.

 

二、下载图像库

Download the Dataset

There are two ways to work with the dataset: (1) downloading all the images via the LabelMe Matlab toolbox. The toolbox will allow you to customize the portion of the database that you want to download, (2) Using the images online via the LabelMe Matlab toolbox. This option is less preferred as it will be slower, but it will allow you to explore the dataset before downloading it. 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

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 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:

  • To download the entire dataset, type the following into Matlab:
 1 HOMEIMAGES = '/desired/path/to/Images';
 2 HOMEANNOTATIONS = '/desired/path/to/Annotations';
 3 LMinstall (HOMEIMAGES, HOMEANNOTATIONS);
 4 
 5 where "/desired/path/to/" is the desired location where the annotations and images will be stored.
 6  This process will create the following directory structure under "/desired/path/to/":
 7 ./Annotations
 8 ./Annotations/folder1
 9 ...
10 ./Annotations/folderN
11 
12 ./Images
13 ./Images/folder1
14 ...
15 ./Images/folderN
16 
17 where folder1 through folderN are directories containing the images and annotations.

 

  • If you only want to download a list of specific folders, then run:
1 HOMEIMAGES = '/desired/path/to/Images';
2 HOMEANNOTATIONS = '/desired/path/to/Annotations';
3 folderlist = { '05june05_static_street_porter'};
4 LMinstall (folderlist, HOMEIMAGES, HOMEANNOTATIONS);

 

This will download only one folder from the collection. You can see the complete list of folders here.

  • If you already have the dataset but want to update the annotations, then use LMinstall with four arguments:
1 LMinstall (folders, images, HOMEIMAGES, HOMEANNOTATIONS);

 

Option 2: 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:

 1 HOMEIMAGES = 'http://people.csail.mit.edu/brussell/research/LabelMe/Images';
 2 HOMEANNOTATIONS = 'http://people.csail.mit.edu/brussell/research/LabelMe/Annotations';
 3 
 4 D = LMdatabase(HOMEANNOTATIONS); % This will build an index, which will take few minutes.
 5 
 6 % Now you can visualize the images
 7 LMplot(D, 1, HOMEIMAGES);
 8 
 9 % Or read an image
10 [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:

 1 % First create the list of images that you want:
 2 [Q,j] = LMquery(D, 'object.name', 'car');
 3 clear folderlist filelist
 4 for i = 1:length(Q);
 5       folderlist{i} = Q(i).annotation.folder;
 6       filelist{i} = Q(i).annotation.filename;
 7 end
 8 
 9 % Install the selected images:
10 HOMEIMAGES = '/desired/path/to/Images';
11 HOMEANNOTATIONS = '/desired/path/to/Annotations';
12 LMinstall (folderlist, filelist, HOMEIMAGES, HOMEANNOTATIONS);

 







参考:

[1] http://labelme.csail.mit.edu/Release3.0/browserTools/php/matlab_toolbox.php

[2] http://labelme.csail.mit.edu/Release3.0/browserTools/php/dataset.php

转载于:https://www.cnblogs.com/GarfieldEr007/p/5338708.html

更多相关:

  • 上篇笔记中梳理了一把 resolver 和 balancer,这里顺着前面的流程走一遍入口的 ClientConn 对象。ClientConn// ClientConn represents a virtual connection to a conceptual endpoint, to // perform RPCs. // //...

  • 我的实验是基于PSPNet模型实现二维图像的语义分割,下面的代码直接从得到的h5文件开始往下做。。。 也不知道是自己的检索能力出现了问题还是咋回事,搜遍全网都没有可以直接拿来用的语义分割代码,东拼西凑,算是搞成功了。 实验平台:Windows、VS2015、Tensorflow1.8 api、Python3.6 具体的流程为:...

  • Path Tracing 懒得翻译了,相信搞图形学的人都能看得懂,2333 Path Tracing is a rendering algorithm similar to ray tracing in which rays are cast from a virtual camera and traced through a s...

  • configure_file( [COPYONLY] [ESCAPE_QUOTES] [@ONLY][NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ]) 我遇到的是 configure_file(config/config.in ${CMAKE_SOURCE_DIR}/...

  •     直接复制以下代码创建一个名为settings.xml的文件,放到C:UsersAdministrator.m2下即可