From 7d6067e789a2fdc105cf4b14c3bfaae321848a15 Mon Sep 17 00:00:00 2001 From: WeiCheng Kuo Date: Thu, 8 Oct 2015 23:49:25 -0700 Subject: [PATCH] minor edit --- README.md | 9 +++++++++ eval/eval_fast_dbox.m | 6 ++---- eval/{plot_fast_rcnn.m => plot_fast_dbox.m} | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) rename eval/{plot_fast_rcnn.m => plot_fast_dbox.m} (95%) diff --git a/README.md b/README.md index 8db57fc..c2647e7 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,15 @@ python ./tools/demo.py (Show all demo options) python ./tools/demo.py --demo 0 --frame 0 --numboxes 5 (Demo on frame 0 of COCO val set showing top 5 proposals) ``` +**Evaluate** the test result. This part is written in Matlab. First launch your Matlab in $FDBOX_ROOT. Then do the following: + +```Shell +cd ./eval +eval_fast_dbox +plot_fast_dbox(name) +``` +The evaluation output will be printed and the Recall-vs-NumOfProposals plots will be shown. + ### Extra-downloads Pre-computed Fast DeepBox proposals on COCO train, val, and test-dev. diff --git a/eval/eval_fast_dbox.m b/eval/eval_fast_dbox.m index 7289533..3c83c89 100644 --- a/eval/eval_fast_dbox.m +++ b/eval/eval_fast_dbox.m @@ -1,9 +1,7 @@ % Setup directories function eval_fast_dbox() name = 'fast-dbox-multiscale'; -%name = 'ebox_3_ss_73_iter_120000'; -suffix = ['fast_rcnn_dbox_' name]; -%load COCO annotations for specific categories +suffix = ['results_' name]; addpath('./MSCOCO/MatlabAPI'); dataDir='./MSCOCO'; split = 'val'; @@ -11,7 +9,7 @@ function eval_fast_dbox() dataType = [split year]; annFile=sprintf('%s/annotations/instances_%s.json',dataDir,dataType); -%% load coco non ovlap with imagenet categories +%% load coco coco=CocoApi(annFile); imgIds = coco.getImgIds(); num_imgs = numel(imgIds); diff --git a/eval/plot_fast_rcnn.m b/eval/plot_fast_dbox.m similarity index 95% rename from eval/plot_fast_rcnn.m rename to eval/plot_fast_dbox.m index 1846756..9572f09 100644 --- a/eval/plot_fast_rcnn.m +++ b/eval/plot_fast_dbox.m @@ -1,5 +1,5 @@ -function plot_fast_rcnn(name) -load(['fast_rcnn_dbox_' name '.mat']); +function plot_fast_dbox(name) +load(['result_' name '.mat']); dr_e = mean_edgebox./sum_gt; dr_ds = mean_dbox_Mprop./sum_gt; thr_num = [1 2 5 10 20 50 100 200 500 1000 2000];