selective_search_boxes_batch.m 1.19 KB
Newer Older
Ross Girshick's avatar
Ross Girshick committed
1
function [images, boxes] = selective_search_boxes_batch(imdb)
Ross Girshick's avatar
Ross Girshick committed
2
3
4
5
6
7
8
9
10
% AUTORIGHTS
% ---------------------------------------------------------
% Copyright (c) 2014, Ross Girshick
% 
% This file is part of the R-CNN code and is available 
% under the terms of the Simplified BSD License provided in 
% LICENSE. Please retain this notice and LICENSE if you use 
% this file (or any portion of it) in your project.
% ---------------------------------------------------------
Ross Girshick's avatar
Ross Girshick committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

fast_mode = true;

% ------------------------------------------------------------------------
% distributed computing configurations
addpath(genpath('rootdir/simple-cluster-lib'));
dconf                 = simple_cluster_lib_config();
dconf.cd              = pwd();
dconf.local           = false;
dconf.dist_nodes      = 20;
dconf.hours           = 12;
dconf.cput            = 60*60*24;
dconf.cleanup         = false;
%dconf.resume = true;
%dconf.work_dir_suffix = [testset '_' year];
% ------------------------------------------------------------------------

boxes = distributed_job(dconf, 'op_selective_search_boxes', ...
                        1, length(imdb.image_ids), imdb);
% mimic selective search output variable names
images = imdb.image_ids;