From 1719f4e4e85d9717a22524c277b4db57d940986c Mon Sep 17 00:00:00 2001 From: Jordi Pont-Tuset Date: Wed, 27 Apr 2016 18:43:18 +0200 Subject: [PATCH] - Pointer to precomputed results added --- benchmark/results_segm_proposals.m | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/benchmark/results_segm_proposals.m b/benchmark/results_segm_proposals.m index 4c85321..7e6937f 100644 --- a/benchmark/results_segm_proposals.m +++ b/benchmark/results_segm_proposals.m @@ -31,16 +31,20 @@ %% Sweep all databases and load pre-computed results for db_id = 1:length(databases) - database = databases{db_id}; - - % Sweep all soa methods and store the results - for s_id=1:length(soa_which{db_id}) - soa_id = soa_ids{soa_which{db_id}(s_id)}; - soa_tp = soa_type{soa_which{db_id}(s_id)}; - - % Load pre-computed results - soa(db_id).(soa_id) = eval_proposals(soa_id, database, gt_sets{db_id}); %#ok - end + database = databases{db_id}; + + % Sweep all soa methods and store the results + for s_id=1:length(soa_which{db_id}) + soa_id = soa_ids{soa_which{db_id}(s_id)}; + soa_tp = soa_type{soa_which{db_id}(s_id)}; + + % Load pre-computed results + if ~exist(fullfile(root_dir,'results',database, [soa_id '_' database '_' gt_sets{db_id} '.mat']),'file') + error('Precomputed results not found: ''%s''\nHave you downloaded them? You can find them in:\n - https://data.vision.ee.ethz.ch/jpont/mcg/eval/Pascal.zip\n - https://data.vision.ee.ethz.ch/jpont/mcg/eval/SBD.zip\n - https://data.vision.ee.ethz.ch/jpont/mcg/eval/COCO.zip\nDownload them and put them in a folder called ''results''.', fullfile(root_dir,'results',database, [soa_id '_' database '_' gt_sets{db_id} '.mat'])) + else + soa(db_id).(soa_id) = eval_proposals(soa_id, database, gt_sets{db_id}); %#ok + end + end end