(indices, boxes, ignores, ioa_thr)
| 750 | return dtboxes |
| 751 | |
| 752 | def get_ignores(indices, boxes, ignores, ioa_thr): |
| 753 | |
| 754 | indices = list(set(np.arange(boxes.shape[0])) - set(indices)) |
| 755 | rboxes = boxes[indices, :] |
| 756 | ioas = compute_ioa_matrix(rboxes, ignores) |
| 757 | ioas = np.max(ioas, axis = 1) |
| 758 | rows = np.where(ioas > ioa_thr)[0] |
| 759 | return rows.size |
| 760 | |
| 761 | def compute_ioa_matrix(dboxes: np.ndarray, gboxes: np.ndarray): |
| 762 |
no test coverage detected