ArcherBlake commited on
Commit
ac2fe9e
·
verified ·
1 Parent(s): a0d2373

Upload 4 files

Browse files
.gitattributes CHANGED
@@ -56,3 +56,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
56
  # Video files - compressed
57
  *.mp4 filter=lfs diff=lfs merge=lfs -text
58
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
56
  # Video files - compressed
57
  *.mp4 filter=lfs diff=lfs merge=lfs -text
58
  *.webm filter=lfs diff=lfs merge=lfs -text
59
+ SBU_captioned_photo_dataset_captions.txt filter=lfs diff=lfs merge=lfs -text
60
+ SBU_captioned_photo_dataset_urls.txt filter=lfs diff=lfs merge=lfs -text
README.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SBU Captioned Photo Dataset.
2
+ This dataset correspond to the following paper:
3
+
4
+ Vicente Ordonez, Girish Kulkarni, Tamara L. Berg.
5
+ Im2Text: Describing Images Using 1 Million Captioned Photographs.
6
+ Neural Information Processing Systems(NIPS), 2011.
7
+
8
+ FILES:
9
+
10
+ SBU_captioned_photo_dataset_urls.txt
11
+ This file contains 1 million urls corresponding to each image
12
+ in this dataset. The images point to public images on Flickr.
13
+ Note: Images might be removed by users at anytime.
14
+
15
+ SBU_captioned_photo_dataset_captions.txt
16
+ This file contains 1 million captions corresponding to each
17
+ image in this dataset. The captions are in the same order
18
+ as the urls in the above file so for instance caption in line 101
19
+ in this file corresponds to the picture pointed by url in line 101
20
+ in the file above.
21
+
22
+ download.m
23
+ This file tries to download the images from the urls specified
24
+ in SBU_captioned_photo_dataset_urls.txt
25
+
26
+ Vicente Ordonez ([email protected])
SBU_captioned_photo_dataset_captions.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44fa1a5a515e9fb9387f18031e7f9ad8ae564d40c9f4e438dfca6a5bdb6071a0
3
+ size 67580207
SBU_captioned_photo_dataset_urls.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:598e6b13a339796968b223e3f75a27c67374adcd83e55c365bde8267bae82fae
3
+ size 55393594
download.m ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ % Vicente Ordonez @ 2011
2
+ % Stony Brook University, State University of New York.
3
+ %
4
+ % Publication:
5
+ % Im2Text: Describing Images Using 1 Million Captioned Photographs.
6
+ % NIPS 2011. V. Ordonez, G. Kulkarni, TL. Berg
7
+ %
8
+ % This file downloads the images in the SBU_captioned_photo_dataset_urls.txt file.
9
+
10
+ output_directory = 'sbu_images';
11
+ urls = textread('SBU_captioned_photo_dataset_urls.txt', '%s', -1);
12
+ if ~exist(output_directory, 'dir')
13
+ mkdir(output_directory);
14
+ end
15
+
16
+ rand('twister', 123);
17
+ urls = urls(randperm(length(urls)));
18
+ for i = 1 : length(urls)
19
+ if ~exist(fullfile(output_directory, [regexprep(urls{i}(24, end), '/', '_')]))
20
+ cmd = ['wget -t 3 -T 5 --quiet ' urls{i} ...
21
+ ' -O ' output_directory '/' regexprep(urls{i}(24, end), '/', '_')];
22
+ unix(cmd);
23
+ fprintf('%d. %s\n', i, urls{i});
24
+ end
25
+ end
26
+