Downloading imagenet datasets with shell scripts

Source: Internet
Author: User

first time blogging to share some recent work imagenet Introduction

Imagenet is currently the world's largest image recognition of the database, the database contains a large number of image information, and these images have a basic tag information, which avoids their own hand-labeled images, to save a lot of time for users. preparatory work

Before downloading the dataset, need to register at the official website, the website Registration link: http://www.image-net.org/signup

Note that when registering, email is best to fill in the school's mailbox, is the suffix is edu.cn mailbox, basic each student will have a mailbox.
After registration, you can apply for permission, the official online said registered mailboxes like Gmail,hotmail these mailboxes will not download the basic rights, application, you can go to school mailbox click link to get download permission.
Login Official website: Http://www.image-net.org/login login account, view my profile

The username and accesskey in the figure are what you need to download the dataset later. Start Download

On the official internet to find their own images of objects, in the imagenet each category of pictures have their own synset,synset URL: http://www.image-net.org/archive/words.txt, create a local file, save their own needs synset.
The following is my Shell batch code:

#!/bin/bash 
#save_path = "$"
class_id= "$"

#读取文件内容并保存
id_arr= ($ (cat $class _id | sed '/^#.*\|^$/d '))
id_num=${#id_arr [@]}

n=0 for
var1 in ${id_arr[*]} 
do
    #$ (wget-c ${id_arr[n]}-o ${name_arr[n]}
    $ (wget-c "http://www.image-net.org/downloads/bbox/bbox/${id_arr[n]}.tar.gz"-o "${id_arr[n]}.tar.gz")
    $ (wget-c "http://www.image-net.org/download/synset?wnid=${id_arr[n]}&username=[here to fill in your Username]&accesskey =[here fill in your Accesskey]&release=latest&src=stanford "-o" ${id_arr[n]}.tar ") let
    n+=1 do

echo" Download Finsh "

Then run bash [batch name] [save Synset file name] to start The download note the Imagenet DataSet is not intended for commercial use, and the license you obtain can only be used by yourself. Please read the contents of Http://www.image-net.org/download-faq carefully before using imagenet

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.