class_docstr: Legacy Delta XYWH BBox coder used in MMDet V1.x.
  
  Following the practice in R-CNN [1]_, this coder encodes bbox (x1, y1, x2,
  y2) into delta (dx, dy, dw, dh) and decodes delta (dx, dy, dw, dh)
  back to original bbox (x1, y1, x2, y2).
  
  Note:
      The main difference between :class`LegacyDeltaXYWHBBoxCoder` and
      :class:`DeltaXYWHBBoxCoder` is whether ``+ 1`` is used during width and
      height calculation. We suggest to only use this coder when testing with
      MMDet V1.x models.
  
  References:
      .. [1] https://arxiv.org/abs/1311.2524
  
  Args:
      target_means (Sequence[float]): denormalizing means of target for
          delta coordinates
      target_stds (Sequence[float]): denormalizing standard deviation of
          target for delta coordinates
docstr: Apply transformation `pred_bboxes` to `boxes`.
  
  Args:
      boxes (torch.Tensor): Basic boxes.
      pred_bboxes (torch.Tensor): Encoded boxes with shape
      max_shape (tuple[int], optional): Maximum shape of boxes.
          Defaults to None.
      wh_ratio_clip (float, optional): The allowed ratio between
          width and height.
  
  Returns:
      torch.Tensor: Decoded boxes.
docstr_tok: ["Apply","transformation","`","pred_bboxes","`","to","`","boxes","`",".","Args",":","boxes","(","torch.Tensor",")",":","Basic","boxes",".","pred_bboxes","(","torch.Tensor",")",":","Encoded","boxes","with","shape","max_shape","(","tuple","[","int","]",",","optional",")",":","Maximum","shape","of","boxes",".","Defaults","to","None",".","wh_ratio_clip","(","float",",","optional",")",":","The","allowed","ratio","between","width","and","height",".","Returns",":","torch.Tensor",":","Decoded","boxes","."]
code: def decode(
      self, bboxes, pred_bboxes, max_shape=None, wh_ratio_clip=16 / 1000
  ):
      """Apply transformation `pred_bboxes` to `boxes`.
  
      Args:
          boxes (torch.Tensor): Basic boxes.
          pred_bboxes (torch.Tensor): Encoded boxes with shape
          max_shape (tuple[int], optional): Maximum shape of boxes.
              Defaults to None.
          wh_ratio_clip (float, optional): The allowed ratio between
              width and height.
  
      Returns:
          torch.Tensor: Decoded boxes.
      """
      assert pred_bboxes.size(0) == bboxes.size(0)
      decoded_bboxes = legacy_delta2bbox(
          bboxes,
          pred_bboxes,
          self.means,
          self.stds,
          max_shape,
          wh_ratio_clip,
      )
  
      return decoded_bboxes
  
file_path: insightface/detection/scrfd/mmdet/core/bbox/coder/legacy_delta_xywh_bbox_coder.py
imports: import numpy
  import torch
  from ..builder import BBOX_CODERS
  from .base_bbox_coder import BaseBBoxCoder
label_desc: Use image node_id 3 for calling the LegacyDeltaXYWHBBoxCoder obj's underlying member method code with example usage: obj.decode(bboxes, pred_bboxes, max_shape, wh_ratio_clip) and returns: decoded_bboxes