(labels, bboxes,
                         out_labels=[], num_classes=np.inf,
                         scope=None)
Filter out labels from a collection. Typically used to get
    of DontCare elements. Also remove elements based on the number of classes.

    Return:
      labels, bboxes: Filtered elements.
Filter out labels from a collection. Typically used to get
    of DontCare elements. Also remove elements based on the number of classes.
Filter out labels from a collection . Typically used to get of DontCare elements . Also remove elements based on the number of classes .
def bboxes_filter_labels(labels, bboxes,
                         out_labels=[], num_classes=np.inf,
                         scope=None):
    """Filter out labels from a collection. Typically used to get
    of DontCare elements. Also remove elements based on the number of classes.

    Return:
      labels, bboxes: Filtered elements.
    """
    with tf.name_scope(scope, 'bboxes_filter_labels', [labels, bboxes]):
        mask = tf.greater_equal(labels, num_classes)
        for l in labels:
            mask = tf.logical_and(mask, tf.not_equal(labels, l))
        labels = tf.boolean_mask(labels, mask)
        bboxes = tf.boolean_mask(bboxes, mask)
        return labels, bboxes
def bboxes_filter_labels ( labels , bboxes , out_labels = [ ] , num_classes = np . inf , scope = None ) : with tf . name_scope ( scope , 'bboxes_filter_labels' , [ labels , bboxes ] ) : mask = tf . greater_equal ( labels , num_classes ) for l in labels : mask = tf . logical_and ( mask , tf . not_equal ( labels , l ) ) labels = tf . boolean_mask ( labels , mask ) bboxes = tf . boolean_mask ( bboxes , mask ) return labels , bboxes