MaxNumBoundingBoxes layer

[source]

MaxNumBoundingBoxes class

keras.layers.MaxNumBoundingBoxes(max_number, fill_value=-1, **kwargs)

Ensure the maximum number of bounding boxes.

Note: This layer is safe to use inside a tf.data or grain pipeline (independently of which backend you're using).

Arguments

  • max_number: Desired output number of bounding boxes.
  • padding_value: The padding value of the boxes and labels in bounding_boxes. Defaults to -1.