class_docstr: Distance Point BBox coder.
  
  This coder encodes gt bboxes (x1, y1, x2, y2) into (top, bottom, left,
  right) and decode it back to the original.
  
  Args:
      clip_border (bool, optional): Whether clip the objects outside the
          border of the image. Defaults to True.
docstr: Encode bounding box to distances.
  
  Args:
      points (Tensor): Shape (N, 2), The format is [x, y].
      gt_bboxes (Tensor or :obj:`BaseBoxes`): Shape (N, 4), The format
          is "xyxy"
      max_dis (float): Upper bound of the distance. Default None.
      eps (float): a small value to ensure target < max_dis, instead <=.
          Default 0.1.
  
  Returns:
      Tensor: Box transformation deltas. The shape is (N, 4).
docstr_tok: ["Encode","bounding","box","to","distances",".","Args",":","points","(","Tensor",")",":","Shape","(","N",",","2",")",",","The","format","is","[","x",",","y","]",".","gt_bboxes","(","Tensor","or",":","obj",":","`","BaseBoxes","`",")",":","Shape","(","N",",","4",")",",","The","format","is","``","xyxy","''","max_dis","(","float",")",":","Upper","bound","of","the","distance",".","Default","None",".","eps","(","float",")",":","a","small","value","to","ensure","target","<","max_dis",",","instead","<","=",".","Default","0.1",".","Returns",":","Tensor",":","Box","transformation","deltas",".","The","shape","is","(","N",",","4",")","."]
code: def encode(
      self,
      points: Tensor,
      gt_bboxes: Union[Tensor, BaseBoxes],
      max_dis: Optional[float] = None,
      eps: float = 0.1,
  ) -> Tensor:
      """Encode bounding box to distances.
  
      Args:
          points (Tensor): Shape (N, 2), The format is [x, y].
          gt_bboxes (Tensor or :obj:`BaseBoxes`): Shape (N, 4), The format
              is "xyxy"
          max_dis (float): Upper bound of the distance. Default None.
          eps (float): a small value to ensure target < max_dis, instead <=.
              Default 0.1.
  
      Returns:
          Tensor: Box transformation deltas. The shape is (N, 4).
      """
      gt_bboxes = get_box_tensor(gt_bboxes)
      assert points.size(0) == gt_bboxes.size(0)
      assert points.size(-1) == 2
      assert gt_bboxes.size(-1) == 4
      return bbox2distance(points, gt_bboxes, max_dis, eps)
  
file_path: mmdetection/mmdet/models/task_modules/coders/distance_point_bbox_coder.py
imports: from typing import Optional, Sequence, Union
  from torch import Tensor
  from mmdet.registry import TASK_UTILS
  from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, bbox2distance, distance2bbox, get_box_tensor
  from .base_bbox_coder import BaseBBoxCoder
label_desc: Use image node_id 2 for calling the DistancePointBBoxCoder obj's underlying member method code with example usage: obj.encode(points, gt_bboxes, max_dis, eps) and returns: bbox2distance