Skip to content

Commit

Permalink
- Pointer to precomputed results added
Browse files Browse the repository at this point in the history
  • Loading branch information
jponttuset committed Apr 27, 2016
1 parent c184d30 commit 1719f4e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions benchmark/results_segm_proposals.m
Original file line number Diff line number Diff line change
Expand Up @@ -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<SAGROW>
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<SAGROW>
end
end
end


Expand Down

0 comments on commit 1719f4e

Please sign in to comment.