Skip to content

Commit

Permalink
add guard when loading detection
Browse files Browse the repository at this point in the history
  • Loading branch information
fyxiao committed Dec 27, 2018
1 parent 9b25304 commit 498050b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions external/dp/functions/rfcn/rfcn_test_vid_preload_det.m
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@
else
mot_boxes = [boxes zeros(size(boxes, 1), 1)];
end
else
assert(false, sprintf('detection file %s not found', det_filename));
end
else
for idx = 1: length(preload_root)
Expand All @@ -550,6 +552,8 @@
else
mot_boxes = [mot_boxes; [cur_boxes zeros(size(cur_boxes, 1), 1)]];
end
else
assert(false, sprintf('detection file %s not found', det_filename));
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion external/dp/run_dp.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
'top_percentage', opts.top_percentage, ...
'pre_nms_thresh', opts.pre_nms_thresh, ...
'neighbor_rescoring', opts.neighbor_rescoring);
exit();
% exit();



Expand Down

0 comments on commit 498050b

Please sign in to comment.