class_docstr: Bucketing BBox Coder for Side-Aware Bounday Localization (SABL).
  
  Boundary Localization with Bucketing and Bucketing Guided Rescoring
  are implemented here.
  
  Please refer to https://arxiv.org/abs/1912.04260 for more details.
  
  Args:
      num_buckets (int): Number of buckets.
      scale_factor (int): Scale factor of proposals to generate buckets.
      offset_topk (int): Topk buckets are used to generate
           bucket fine regression targets. Defaults to 2.
      offset_upperbound (float): Offset upperbound to generate
           bucket fine regression targets.
           To avoid too large offset displacements. Defaults to 1.0.
      cls_ignore_neighbor (bool): Ignore second nearest bucket or Not.
           Defaults to True.
      clip_border (bool, optional): Whether clip the objects outside the
          border of the image. Defaults to True.
code: def __init__(
      self,
      num_buckets,
      scale_factor,
      offset_topk=2,
      offset_upperbound=1.0,
      cls_ignore_neighbor=True,
      clip_border=True,
  ):
      super(BucketingBBoxCoder, self).__init__()
      self.num_buckets = num_buckets
      self.scale_factor = scale_factor
      self.offset_topk = offset_topk
      self.offset_upperbound = offset_upperbound
      self.cls_ignore_neighbor = cls_ignore_neighbor
      self.clip_border = clip_border
  
file_path: insightface/detection/scrfd/mmdet/core/bbox/coder/bucketing_bbox_coder.py
imports: import numpy
  import torch
  import torch.nn.functional
  from ..builder import BBOX_CODERS
  from ..transforms import bbox_rescale
  from .base_bbox_coder import BaseBBoxCoder
label_desc: Use image node_id 1 to create a new BucketingBBoxCoder object from inherited base classes: BaseBBoxCoder with example: obj = BucketingBBoxCoder(num_buckets, scale_factor, offset_topk, offset_upperbound, cls_ignore_neighbor, clip_border)