lib/roi_data/fast_rcnn_rel.py [754:765]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        pos_labels = gt_labels[gt_assignment[fg_inds]] - 1
        if label == 'sbj':
            low_shot_inds = \
                np.array([fg_inds[i] for i, s in enumerate(pos_labels) if
                         low_shot_helper.check_low_shot_s([s, -1, -1])], dtype=np.int32)
        elif label == 'obj':
            low_shot_inds = \
                np.array([fg_inds[i] for i, o in enumerate(pos_labels) if
                         low_shot_helper.check_low_shot_o([-1, -1, o])], dtype=np.int32)
        else:
            raise NotImplementedError
        fg_inds = np.append(low_shot_inds, fg_inds)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lib/roi_data/fast_rcnn_rel.py [778:791]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        pos_labels = gt_labels[gt_assignment[fg_inds]] - 1
        # low_shot_inds contains one dummy ROI at the very beginning
        # This is to make sure that low_shot ROIs are never empty
        if label == 'sbj':
            low_shot_inds = \
                np.array([fg_inds[i] for i, s in enumerate(pos_labels) if
                         low_shot_helper.check_low_shot_s([s, -1, -1])], dtype=np.int32)
        elif label == 'obj':
            low_shot_inds = \
                np.array([fg_inds[i] for i, o in enumerate(pos_labels) if
                         low_shot_helper.check_low_shot_o([-1, -1, o])], dtype=np.int32)
        else:
            raise NotImplementedError
        fg_inds = np.append(low_shot_inds, fg_inds)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



