Human-Falling-Detect-Tracks icon indicating copy to clipboard operation
Human-Falling-Detect-Tracks copied to clipboard

NaN may appear in the demo

Open GallonDeng opened this issue 4 years ago • 3 comments

great repo. I ran some tests and found that NaN may appear in the code, speciffically, in the bbox calculation and iou function.

GallonDeng avatar Jul 10 '20 07:07 GallonDeng

Where it NaN appeared and how did you get it?

GajuuzZ avatar Jul 10 '20 15:07 GajuuzZ

I just dowloaded a video from web and tested it with the repo. It ran a while and got stuck, showed warning invaild values in the code "cost_matrix[cost_matrix > max_distance] = max_distance + 1e-5" in the "min_cost_matching" function. I checked that NaN appeared in the "iou(bbox, candidates)" function in the iou_matching.py. Specifically, there may be invalid "bbox" and "candidates" which result in NaN.

GallonDeng avatar Jul 13 '20 02:07 GallonDeng

I just dowloaded a video from web and tested it with the repo. It ran a while and got stuck, showed warning invaild values in the code "cost_matrix[cost_matrix > max_distance] = max_distance + 1e-5" in the "min_cost_matching" function. I checked that NaN appeared in the "iou(bbox, candidates)" function in the iou_matching.py. Specifically, there may be invalid "bbox" and "candidates" which result in NaN.

fix bug??

nobody-cheng avatar Dec 23 '20 07:12 nobody-cheng