jwchoi384/Gaussian_YOLOv3

count FP/TP

CuongNguyen218 opened this issue · 5 comments

Hi @jwchoi384 ,
I want to calculate TP/FP of KITTI dataset in your paper. How can I do it ?

@CuongNguyen218
I explained in detail in our paper. As mentioned our paper, we used bdd evaluation code.
When calculate TP and FP, we set detection threshold as 0.5 (test default threshold).

float thresh = 0.005;

In addition, IoU threshold is set as official evaluation threshold value of each dataset.

thresholds = [0.75]

You must print out the KITTI result as BDD format.
It is easy. Firstly, you just change eval=kitti to eval=bdd in cfg/KITTI_3cls.data.

Secondly, you must change the class id as KITTI classes. (default is BDD class id)

char *bdd_ids[] = {"car", "pedestrian", "cyclist"};

Finally, run the BDD evaluation code using bdd_evaluation/gt_KITTI_valid_for_bdd_eval_method.json.
This is the ground-truth file of KITTI validation set for using BDD evaluation method.
Before running the code, you must set the IOU threshold in bdd_evaluation/evaluate.py mentioned above (Car is 0.7, the others are 0.5).

@jwchoi384
I should change line https://github.com/ucbdrive/bdd-data/blob/master/bdd_data/evaluate.py#L189 from thresholds = [0.75] to thresholds = [0.7, 0.5, 0.5] right?
but when i change this line it throw an error.

how can i print the number of TP and FP compare to Gt box. Should I Print value of this line https://github.com/jwchoi384/Gaussian_YOLOv3/blob/master/bdd_evaluation/evaluate.py#L169, right ?