wei-tim / YOWO

You Only Watch Once: A Unified CNN Architecture for Real-Time Spatiotemporal Action Localization
840 stars 161 forks source link

video_mAP #42

Open west-i opened 4 years ago

west-i commented 4 years ago

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

Holmes-GU commented 4 years ago

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?

bamaolalala commented 2 years ago

Have you solved the problem ?