def test_filter_scores_greater_than(self):
    boxlist = np_box_list.BoxList(np.array([[0.25, 0.25, 0.75, 0.75], [0.0, 0.0, 0.5, 0.75]], dtype=np.float32))
    boxlist.add_field('scores', np.array([0.8, 0.2], np.float32))
    boxlist_greater = np_box_list_ops.filter_scores_greater_than(boxlist, 0.5)
    expected_boxlist_greater = np_box_list.BoxList(np.array([[0.25, 0.25, 0.75, 0.75]], dtype=np.float32))
    self.assertAllClose(boxlist_greater.get(), expected_boxlist_greater.get())
def test_filter_scores_greater_than(self):
    boxlist = np_box_list.BoxList(np.array([[0.25, 0.25, 0.75, 0.75], [0.0, 0.0, 0.5, 0.75]], dtype=np.float32))
    boxlist.add_field('scores', np.array([0.8, 0.2], np.float32))
    boxlist_greater = np_box_list_ops.filter_scores_greater_than(boxlist, 0.5)
    expected_boxlist_greater = np_box_list.BoxList(np.array([[0.25, 0.25, 0.75, 0.75]], dtype=np.float32))
    self.assertAllClose(boxlist_greater.get(), expected_boxlist_greater.get())