Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX. Unused variable removed, that caused quadratic running time o… #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions internal/esvm_mine_negatives.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
if supersize > 0
addon=sprintf(', max = %.3f',max(cellfun(@(x)max_or_this(x,-1000),scores)));
end
total = sum(cellfun(@(x)x.num_visited,mining_queue));

fprintf(1,'Found %04d windows, image:%05d (#seen=%05d/%05d%s)\n',...
supersize, index, ...
length(imageset)-length(mining_queue)+i, length(imageset), addon);
Expand Down Expand Up @@ -214,17 +214,10 @@
function mining_queue = update_mq_onepass(mining_queue, violating_images, ...
empty_images)

%% Take the violating images and remove them from queue
mover_ids = find(cellfun(@(x)ismember(x.index,violating_images), ...
mining_queue));

%% Take the violating and empty images and remove them from queue
mover_ids = 1:(length(violating_images) + length(empty_images));
mining_queue(mover_ids) = [];

%% We now take the empty images and remove them from queue
mover_ids = find(cellfun(@(x)ismember(x.index,empty_images), ...
mining_queue));

mining_queue(mover_ids) = [];

function mining_queue = update_mq_front_violators(mining_queue,...
violating_images, ...
Expand Down