class_docstr: TBLR BBox coder.
  
  Following the practice in `FSAF <https://arxiv.org/abs/1903.00621>`_,
  this coder encodes gt bboxes (x1, y1, x2, y2) into (top, bottom, left,
  right) and decode it back to the original.
  
  Args:
      normalizer (list | float): Normalization factor to be
        divided with when coding the coordinates. If it is a list, it should
        have length of 4 indicating normalization factor in tblr dims.
        Otherwise it is a unified float factor for all dims. Default: 4.0
      clip_border (bool, optional): Whether clip the objects outside the
          border of the image. Defaults to True.
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.
  
  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",".","Returns",":","torch.Tensor",":","Decoded","boxes","."]
code: def decode(self, bboxes, pred_bboxes, max_shape=None):
      """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.
  
      Returns:
          torch.Tensor: Decoded boxes.
      """
      assert pred_bboxes.size(0) == bboxes.size(0)
      decoded_bboxes = tblr2bboxes(
          bboxes,
          pred_bboxes,
          normalizer=self.normalizer,
          max_shape=max_shape,
          clip_border=self.clip_border,
      )
  
      return decoded_bboxes
  
file_path: insightface/detection/scrfd/mmdet/core/bbox/coder/tblr_bbox_coder.py
imports: import torch
  from ..builder import BBOX_CODERS
  from .base_bbox_coder import BaseBBoxCoder
label_desc: Use image node_id 3 for calling the TBLRBBoxCoder obj's underlying member method code with example usage: obj.decode(bboxes, pred_bboxes, max_shape) and returns: decoded_bboxes