class_docstr: Delta XYWH BBox coder.
  
  Following the practice in `R-CNN <https://arxiv.org/abs/1311.2524>`_,
  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).
  
  Args:
      target_means (Sequence[float]): Denormalizing means of target for
          delta coordinates
      target_stds (Sequence[float]): Denormalizing standard deviation of
          target for delta coordinates
      clip_border (bool, optional): Whether clip the objects outside the
          border of the image. Defaults to True.
      add_ctr_clamp (bool): Whether to add center clamp, when added, the
          predicted box is clamped is its center is too far away from
          the original anchor's center. Only used by YOLOF. Default False.
      ctr_clamp (int): the maximum pixel shift to clamp. Only used by YOLOF.
          Default 32.
class_docstr_tok: ["Delta","XYWH","BBox","coder",".","Following","the","practice","in","`","R-CNN","<","https",":","\/\/arxiv.org\/abs\/1311.2524",">","`","_",",","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",")",".","Args",":","target_means","(","Sequence","[","float","]",")",":","Denormalizing","means","of","target","for","delta","coordinates","target_stds","(","Sequence","[","float","]",")",":","Denormalizing","standard","deviation","of","target","for","delta","coordinates","clip_border","(","bool",",","optional",")",":","Whether","clip","the","objects","outside","the","border","of","the","image",".","Defaults","to","True",".","add_ctr_clamp","(","bool",")",":","Whether","to","add","center","clamp",",","when","added",",","the","predicted","box","is","clamped","is","its","center","is","too","far","away","from","the","original","anchor","'s","center",".","Only","used","by","YOLOF",".","Default","False",".","ctr_clamp","(","int",")",":","the","maximum","pixel","shift","to","clamp",".","Only","used","by","YOLOF",".","Default","32","."]
docstr: Get box regression transformation deltas that can be used to
  transform the ``bboxes`` into the ``gt_bboxes``.
  
  Args:
      bboxes (torch.Tensor or :obj:`BaseBoxes`): Source boxes,
          e.g., object proposals.
      gt_bboxes (torch.Tensor or :obj:`BaseBoxes`): Target of the
          transformation, e.g., ground-truth boxes.
  
  Returns:
      torch.Tensor: Box transformation deltas
docstr_tok: ["Get","box","regression","transformation","deltas","that","can","be","used","to","transform","the","``","bboxes","``","into","the","``","gt_bboxes","``",".","Args",":","bboxes","(","torch.Tensor","or",":","obj",":","`","BaseBoxes","`",")",":","Source","boxes",",","e.g.",",","object","proposals",".","gt_bboxes","(","torch.Tensor","or",":","obj",":","`","BaseBoxes","`",")",":","Target","of","the","transformation",",","e.g.",",","ground-truth","boxes",".","Returns",":","torch.Tensor",":","Box","transformation","deltas"]
code: def encode(
      self,
      bboxes: Union[Tensor, BaseBoxes],
      gt_bboxes: Union[Tensor, BaseBoxes],
  ) -> Tensor:
      """Get box regression transformation deltas that can be used to
      transform the ``bboxes`` into the ``gt_bboxes``.
  
      Args:
          bboxes (torch.Tensor or :obj:`BaseBoxes`): Source boxes,
              e.g., object proposals.
          gt_bboxes (torch.Tensor or :obj:`BaseBoxes`): Target of the
              transformation, e.g., ground-truth boxes.
  
      Returns:
          torch.Tensor: Box transformation deltas
      """
      bboxes = get_box_tensor(bboxes)
      gt_bboxes = get_box_tensor(gt_bboxes)
      assert bboxes.size(0) == gt_bboxes.size(0)
      assert bboxes.size(-1) == gt_bboxes.size(-1) == 4
      encoded_bboxes = bbox2delta(
          bboxes, gt_bboxes, self.means, self.stds
      )
      return encoded_bboxes
  
imports: import warnings
  from typing import Optional, Sequence, Union
  import numpy
  import torch
  from torch import Tensor
  from mmdet.registry import TASK_UTILS
  from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
  from .base_bbox_coder import BaseBBoxCoder
label_desc: Use image node_id 2 for calling the DeltaXYWHBBoxCoder obj's underlying member method code with example usage: obj.encode(bboxes, gt_bboxes) and returns: encoded_bboxes