% DEMO: Applying an ensemble of Exemplar-SVMs% This function can generate a nice HTML page by calling:% publish('esvm_quick_demo.m','html')%% Copyright (C) 2011-12 by Tomasz Malisiewicz% All rights reserved.%% This file is part of the Exemplar-SVM library and is made% available under the terms of the MIT license (see COPYING file).% Project homepage: https://github.com/quantombone/exemplarsvm
addpath(genpath(pwd));
cls = 'voc2007-bus';

Download and load pre-trained VOC2007 bus models

[models, M, test_set] = esvm_download_models(cls);
params = esvm_get_default_params;
%We can speed things (2x) up by turning of detections on image flips%params.detect_add_flip = 0;%We can also speed things up by taking a subset of models%[models,M] = esvm_subset_of_models(models,M,1:100);%If VOC is locally installed, let models point to local images, not URLs
local_dir = '/Users/tomasz/projects/pascal/VOCdevkit/';
if isdir(local_dir)
[models] = esvm_update_voc_models_to_local(models, local_dir);
end