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, gt_bboxes):
      """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 = YXbbox2delta(
          bboxes, gt_bboxes, self.means, self.stds
      )
      return encoded_bboxes
  
file_path: mmdetection/projects/EfficientDet/efficientdet/tensorflow/yxyx_bbox_coder.py
imports: import warnings
  import numpy
  import torch
  from mmdet.models.task_modules.coders.delta_xywh_bbox_coder import DeltaXYWHBBoxCoder
  from mmdet.registry import TASK_UTILS
  from mmdet.structures.bbox import HorizontalBoxes, get_box_tensor
label_desc: Use image node_id 1 for calling the YXYXDeltaXYWHBBoxCoder obj's underlying member method code with example usage: obj.encode(bboxes, gt_bboxes) and returns: encoded_bboxes