MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / get_ignores

Function get_ignores

PATH/core/solvers/utils/peddet_tester_dev.py:752–759  ·  view source on GitHub ↗
(indices, boxes, ignores, ioa_thr)

Source from the content-addressed store, hash-verified

750 return dtboxes
751
752def 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
761def compute_ioa_matrix(dboxes: np.ndarray, gboxes: np.ndarray):
762

Callers 1

workerFunction · 0.85

Calls 1

compute_ioa_matrixFunction · 0.85

Tested by

no test coverage detected