YOWO icon indicating copy to clipboard operation
YOWO copied to clipboard

video_mAP

Open west-i opened this issue 4 years ago • 2 comments

1.When I want to calculate video_map, I did not find the testlist_video.txt file.

2.I generated one myself, the format in it is like walk/50_FIRST_DATES_walk_f_cm_np1_le_med_33,it can run begin, but with the following error:

iou is: 0.05 Traceback (most recent call last): File "video_mAP.py", line 327, in video_mAP_jhmdb() File "video_mAP.py", line 320, in video_mAP_jhmdb print(evaluate_videoAP(gt_videos, detected_boxes, CLASSES, iou_th, True)) File "/home/chase/YOWO/eval_results.py", line 244, in evaluate_videoAP ap = video_ap_one_class(gt, pred_cls, iou_thresh, bTemporal, cls_len) File "/home/chase/YOWO/eval_results.py", line 155, in video_ap_one_class iou = np.array([iou3dt(np.array(g), boxes[:, :5]) for g in gt_this]) File "/home/chase/YOWO/eval_results.py", line 155, in iou = np.array([iou3dt(np.array(g), boxes[:, :5]) for g in gt_this]) File "/home/chase/YOWO/utils.py", line 195, in iou3dt return iou3d( b1[np.where(b1[:,0]==tmin)[0][0]:np.where(b1[:,0]==tmax)[0][0]+1,:] , b2[np.where(b2[:,0]==tmin)[0][0]:np.where(b2[:,0]==tmax)[0][0]+1,:] ) * temporal_inter / temporal_union File "/home/chase/YOWO/utils.py", line 184, in iou3d assert b1.shape[0] == b2.shape[0] AssertionError

west-i avatar May 14 '20 14:05 west-i

1.When I want to calculate video_map, I did not find the testlist_video.txt file.

2.I generated one myself, the format in it is like walk/50_FIRST_DATES_walk_f_cm_np1_le_med_33,it can run begin, but with the following error:

iou is: 0.05 Traceback (most recent call last): File "video_mAP.py", line 327, in video_mAP_jhmdb() File "video_mAP.py", line 320, in video_mAP_jhmdb print(evaluate_videoAP(gt_videos, detected_boxes, CLASSES, iou_th, True)) File "/home/chase/YOWO/eval_results.py", line 244, in evaluate_videoAP ap = video_ap_one_class(gt, pred_cls, iou_thresh, bTemporal, cls_len) File "/home/chase/YOWO/eval_results.py", line 155, in video_ap_one_class iou = np.array([iou3dt(np.array(g), boxes[:, :5]) for g in gt_this]) File "/home/chase/YOWO/eval_results.py", line 155, in iou = np.array([iou3dt(np.array(g), boxes[:, :5]) for g in gt_this]) File "/home/chase/YOWO/utils.py", line 195, in iou3dt return iou3d( b1[np.where(b1[:,0]==tmin)[0][0]:np.where(b1[:,0]==tmax)[0][0]+1,:] , b2[np.where(b2[:,0]==tmin)[0][0]:np.where(b2[:,0]==tmax)[0][0]+1,:] ) * temporal_inter / temporal_union File "/home/chase/YOWO/utils.py", line 184, in iou3d assert b1.shape[0] == b2.shape[0] AssertionError

Have reproduced the reported results in the paper?

Holmes-GU avatar Jul 04 '20 09:07 Holmes-GU

Have you solved the problem ?

bamaolalala avatar Sep 16 '22 03:09 bamaolalala