class_docstr: Load the image in Inferencer's pipeline.
  
  Modified Keys:
  
  - img
  - img_path
  - img_shape
  - ori_shape
  
  Args:
      to_float32 (bool): Whether to convert the loaded image to a float32
          numpy array. If set to False, the loaded image is an uint8 array.
          Defaults to False.
code: def __init__(self, **kwargs) -> None:
      super().__init__()
      self.from_file = TRANSFORMS.build(
          dict(type="LoadImageFromFile", **kwargs)
      )
      self.from_ndarray = TRANSFORMS.build(
          dict(type="LoadImageFromNDArray", **kwargs)
      )
  
imports: import copy
  import warnings
  from typing import Optional, Union
  import mmcv
  import mmengine.fileio
  import numpy
  from mmcv.transforms import BaseTransform
  from mmcv.transforms import LoadAnnotations
  from mmcv.transforms import LoadImageFromFile
  from mmocr.registry import TRANSFORMS
label_desc: Use image node_id 1 to create a new InferencerLoader object from inherited base classes: BaseTransform with example: obj = InferencerLoader()