class_docstr: Test-time augmentation with multiple scales and flipping.
  
  An example configuration is as followed:
  
  .. code-block::
  
      img_scale=(2048, 1024),
      img_ratios=[0.5, 1.0],
      flip=True,
      transforms=[
          dict(type='Resize', keep_ratio=True),
          dict(type='RandomFlip'),
          dict(type='Normalize', **img_norm_cfg),
          dict(type='Pad', size_divisor=32),
          dict(type='ImageToTensor', keys=['img']),
          dict(type='Collect', keys=['img']),
      ]
  
  After MultiScaleFLipAug with above configuration, the results are wrapped
  into lists of the same length as followed:
  
  .. code-block::
  
      dict(
          img=[...],
          img_shape=[...],
          scale=[(1024, 512), (1024, 512), (2048, 1024), (2048, 1024)]
          flip=[False, True, False, True]
          ...
      )
  
  Args:
      transforms (list[dict]): Transforms to apply in each augmentation.
      img_scale (None | tuple | list[tuple]): Images scales for resizing.
      img_ratios (float | list[float]): Image ratios for resizing
      flip (bool): Whether apply flip augmentation. Default: False.
      flip_direction (str | list[str]): Flip augmentation directions,
          options are "horizontal" and "vertical". If flip_direction is list,
          multiple flip augmentations will be applied.
          It has no effect when flip == False. Default: "horizontal".
code: def __repr__(self):
      repr_str = self.__class__.__name__
      repr_str += f"(transforms={self.transforms}, "
      repr_str += f"img_scale={self.img_scale}, flip={self.flip})"
      repr_str += f"flip_direction={self.flip_direction}"
      return repr_str
  
file_path: lavis/lavis/common/annotator/uniformer/mmseg/datasets/pipelines/test_time_aug.py
imports: import warnings
  import annotator.uniformer.mmcv
  from ..builder import PIPELINES
  from .compose import Compose
label_desc: Use image node_id 3 for calling the MultiScaleFlipAug obj's underlying member method code with example usage: obj.__repr__() and returns: repr_str