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

        Perform a single tracking step for video object segmentation.

        Args:
            inference_session (`EdgeTamVideoInferenceSession`):
                The video inference session object.
            frame_idx (`int`):
                Index of the current frame.
            obj_idx (`int`):
                Index of the current object.
            batch_size (`int`):
                Batch size of the current frame.
            is_init_cond_frame (`bool`):
                Whether this is an initial conditioning frame with user inputs.
            point_inputs (`dict`, *optional*):
                Point prompt inputs for the current frame.
            mask_inputs (`torch.Tensor`, *optional*):
                Mask prompt inputs for the current frame.
            reverse (`bool`, *optional*, defaults to `False`):
                Whether to track in reverse time order.
            run_mem_encoder (`bool`, *optional*, defaults to `True`):
                Whether to run the memory encoder on predicted masks.
            prev_sam_mask_logits (`torch.Tensor`, *optional*):
                Previously predicted SAM mask logits that can be fed with new clicks.
            streaming (`bool`, *optional*, defaults to `False`):
                Whether this is streaming inference.

        Returns:
            `dict`: Dictionary containing the tracking results for the current frame, including:
                - pred_masks: Predicted low-resolution masks.
                - object_pointer: Object pointer for memory.
                - object_score_logits: Object score logits (inference only).
                - maskmem_features: Memory features for future frames.
                - maskmem_pos_enc: Memory positional encodings.
        
=== parse google
short_description: 'Perform a single tracking step for video object segmentation.'
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'The video inference session object.'
  kind: param
  key: 'param'
  arg_name: 'inference_session'
  type_name: '`EdgeTamVideoInferenceSession`'
  is_optional: False
- DocstringParam
  description: 'Index of the current frame.'
  kind: param
  key: 'param'
  arg_name: 'frame_idx'
  type_name: '`int`'
  is_optional: False
- DocstringParam
  description: 'Index of the current object.'
  kind: param
  key: 'param'
  arg_name: 'obj_idx'
  type_name: '`int`'
  is_optional: False
- DocstringParam
  description: 'Batch size of the current frame.'
  kind: param
  key: 'param'
  arg_name: 'batch_size'
  type_name: '`int`'
  is_optional: False
- DocstringParam
  description: 'Whether this is an initial conditioning frame with user inputs.'
  kind: param
  key: 'param'
  arg_name: 'is_init_cond_frame'
  type_name: '`bool`'
  is_optional: False
- DocstringParam
  description: 'Point prompt inputs for the current frame.'
  kind: param
  key: 'param'
  arg_name: 'point_inputs'
  type_name: '`dict`'
  is_optional: True
  raw_type_name: '`dict`, *optional*'
- DocstringParam
  description: 'Mask prompt inputs for the current frame.'
  kind: param
  key: 'param'
  arg_name: 'mask_inputs'
  type_name: '`torch.Tensor`'
  is_optional: True
  raw_type_name: '`torch.Tensor`, *optional*'
- DocstringParam
  description: 'Whether to track in reverse time order.'
  kind: param
  key: 'param'
  arg_name: 'reverse'
  type_name: '`bool`'
  is_optional: True
  default: 'False'
  raw_type_name: '`bool`, *optional*, defaults to `False`'
- DocstringParam
  description: 'Whether to run the memory encoder on predicted masks.'
  kind: param
  key: 'param'
  arg_name: 'run_mem_encoder'
  type_name: '`bool`'
  is_optional: True
  default: 'True'
  raw_type_name: '`bool`, *optional*, defaults to `True`'
- DocstringParam
  description: 'Previously predicted SAM mask logits that can be fed with new clicks.'
  kind: param
  key: 'param'
  arg_name: 'prev_sam_mask_logits'
  type_name: '`torch.Tensor`'
  is_optional: True
  raw_type_name: '`torch.Tensor`, *optional*'
- DocstringParam
  description: 'Whether this is streaming inference.'
  kind: param
  key: 'param'
  arg_name: 'streaming'
  type_name: '`bool`'
  is_optional: True
  default: 'False'
  raw_type_name: '`bool`, *optional*, defaults to `False`'
- DocstringReturns
  description: |
    Dictionary containing the tracking results for the current frame, including:
    - pred_masks: Predicted low-resolution masks.
    - object_pointer: Object pointer for memory.
    - object_score_logits: Object score logits (inference only).
    - maskmem_features: Memory features for future frames.
    - maskmem_pos_enc: Memory positional encodings.
  kind: returns
  key: 'returns'
  type_name: '`dict`'
  is_generator: False
=== detect
google
=== compose google
Perform a single tracking step for video object segmentation.

Args:
    inference_session (`EdgeTamVideoInferenceSession`): The video inference session object.
    frame_idx (`int`): Index of the current frame.
    obj_idx (`int`): Index of the current object.
    batch_size (`int`): Batch size of the current frame.
    is_init_cond_frame (`bool`): Whether this is an initial conditioning frame with user inputs.
    point_inputs (`dict`, *optional*): Point prompt inputs for the current frame.
    mask_inputs (`torch.Tensor`, *optional*): Mask prompt inputs for the current frame.
    reverse (`bool`, *optional*, defaults to `False`): Whether to track in reverse time order.
    run_mem_encoder (`bool`, *optional*, defaults to `True`): Whether to run the memory encoder on predicted masks.
    prev_sam_mask_logits (`torch.Tensor`, *optional*): Previously predicted SAM mask logits that can be fed with new clicks.
    streaming (`bool`, *optional*, defaults to `False`): Whether this is streaming inference.

Returns:
    `dict`: Dictionary containing the tracking results for the current frame, including:
        - pred_masks: Predicted low-resolution masks.
        - object_pointer: Object pointer for memory.
        - object_score_logits: Object score logits (inference only).
        - maskmem_features: Memory features for future frames.
        - maskmem_pos_enc: Memory positional encodings.
