# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

        Converts the raw output of [`YolosForObjectDetection`] into final bounding boxes in (top_left_x, top_left_y,
        bottom_right_x, bottom_right_y) format. Only supports PyTorch.

        Args:
            outputs ([`YolosObjectDetectionOutput`]):
                Raw outputs of the model.
            threshold (`float`, *optional*):
                Score threshold to keep object detection predictions.
            target_sizes (`torch.Tensor` or `list[tuple[int, int]]`, *optional*):
                Tensor of shape `(batch_size, 2)` or list of tuples (`tuple[int, int]`) containing the target size
                `(height, width)` of each image in the batch. If unset, predictions will not be resized.
        Returns:
            `list[Dict]`: A list of dictionaries, each dictionary containing the scores, labels and boxes for an image
            in the batch as predicted by the model.
        
=== parse google
short_description: |
  Converts the raw output of [`YolosForObjectDetection`] into final bounding boxes in (top_left_x, top_left_y,
  bottom_right_x, bottom_right_y) format. Only supports PyTorch.
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'Raw outputs of the model.'
  kind: param
  key: 'param'
  arg_name: 'outputs'
  type_name: '[`YolosObjectDetectionOutput`]'
  is_optional: False
- DocstringParam
  description: 'Score threshold to keep object detection predictions.'
  kind: param
  key: 'param'
  arg_name: 'threshold'
  type_name: '`float`'
  is_optional: True
  raw_type_name: '`float`, *optional*'
- DocstringParam
  description: |
    Tensor of shape `(batch_size, 2)` or list of tuples (`tuple[int, int]`) containing the target size
    `(height, width)` of each image in the batch. If unset, predictions will not be resized.
  kind: param
  key: 'param'
  arg_name: 'target_sizes'
  type_name: '`torch.Tensor` or `list[tuple[int, int]]`'
  is_optional: True
  raw_type_name: '`torch.Tensor` or `list[tuple[int, int]]`, *optional*'
- DocstringReturns
  description: |
    A list of dictionaries, each dictionary containing the scores, labels and boxes for an image
    in the batch as predicted by the model.
  kind: returns
  key: 'returns'
  type_name: '`list[Dict]`'
  is_generator: False
=== detect
google
=== compose google
Converts the raw output of [`YolosForObjectDetection`] into final bounding boxes in (top_left_x, top_left_y,
bottom_right_x, bottom_right_y) format. Only supports PyTorch.

Args:
    outputs ([`YolosObjectDetectionOutput`]): Raw outputs of the model.
    threshold (`float`, *optional*): Score threshold to keep object detection predictions.
    target_sizes (`torch.Tensor` or `list[tuple[int, int]]`, *optional*): Tensor of shape `(batch_size, 2)` or list of tuples (`tuple[int, int]`) containing the target size
        `(height, width)` of each image in the batch. If unset, predictions will not be resized.

Returns:
    `list[Dict]`: A list of dictionaries, each dictionary containing the scores, labels and boxes for an image
        in the batch as predicted by the model.
