class_docstr: Subtract 1 from the x2 and y2 coordinates of the gt_bboxes.
class_docstr_tok: ["Subtract","1","from","the","x2","and","y2","coordinates","of","the","gt_bboxes","."]
code: def transform(self, results: dict) -> dict:
      if "gt_bboxes" in results:
          gt_bboxes = results["gt_bboxes"]
          if isinstance(gt_bboxes, np.ndarray):
              gt_bboxes[:, 2:] -= 1
              results["gt_bboxes"] = gt_bboxes
          elif isinstance(gt_bboxes, HorizontalBoxes):
              gt_bboxes = results["gt_bboxes"].tensor
              gt_bboxes[:, 2:] -= 1
              results["gt_bboxes"] = HorizontalBoxes(gt_bboxes)
          else:
              raise NotImplementedError
      return results
  
file_path: mmdetection/mmdet/datasets/transforms/transformers_glip.py
imports: import mmcv
  import numpy
  from mmcv.transforms import BaseTransform
  from mmdet.registry import TRANSFORMS
  from mmdet.structures.bbox import HorizontalBoxes, autocast_box_type
  from .transforms import RandomFlip
label_desc: Use image node_id 1 for calling the GTBoxSubOne_GLIP obj's underlying member method code with example usage: obj.transform(results) and returns: results