Error while processing a video
See original GitHub issueHi,
I am using a combination of yolo v4 tiny and motpy to track people in a video. However, after processing successfully for few seconds, the code fails and gives the following error:
/home/user1/anaconda3/envs/people_counting_windows/lib/python3.8/site-packages/motpy/metrics.py:23: RuntimeWarning: invalid value encountered in true_divide iou = val_inter / (val_b1 + np.transpose(val_b2) - val_inter) Traceback (most recent call last): File "motpy_t.py.py", line 101, in <module> tracker.step(detections) File "/home/user1/anaconda3/envs/people_counting_windows/lib/python3.8/site-packages/motpy/tracker.py", line 279, in step matches = self.matching_fn(self.trackers, detections) File "/home/user1/anaconda3/envs/people_counting_windows/lib/python3.8/site-packages/motpy/tracker.py", line 201, in __call__ return match_by_cost_matrix( File "/home/user1/anaconda3/envs/people_counting_windows/lib/python3.8/site-packages/motpy/tracker.py", line 133, in match_by_cost_matrix row_ind, col_ind = scipy.optimize.linear_sum_assignment(cost_mat) File "/home/user1/anaconda3/envs/people_counting_windows/lib/python3.8/site-packages/scipy/optimize/_lsap.py", line 93, in linear_sum_assignment raise ValueError("matrix contains invalid numeric entries") ValueError: matrix contains invalid numeric entries
Kindly help me with this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
yeah absolutely. but im currently facing generic issues with how i pass my bboxes in various trackers so im studying wth im doing wrong. will provide an eaxmple as soon as i get my head above water so i know exactly what im talking about…
@reshmastadas @haviduck If you have an example recreating the issue, please add a test and we can try to fix it in next release.