class_docstr: Legacy anchor generator used in MMDetection V1.x.
  
  The difference between `LegacySSDAnchorGenerator` and `SSDAnchorGenerator`
  can be found in `LegacyAnchorGenerator`.
code: def __init__(
      self,
      strides,
      ratios,
      basesize_ratio_range,
      input_size=300,
      scale_major=True,
  ):
      super(LegacySSDAnchorGenerator, self).__init__(
          strides, ratios, basesize_ratio_range, input_size, scale_major
      )
      self.centers = [
          ((stride - 1) / 2.0, (stride - 1) / 2.0) for stride in strides
      ]
      self.base_anchors = self.gen_base_anchors()
  
imports: import mmcv
  import numpy
  import torch
  from torch.nn.modules.utils import _pair
  from .builder import ANCHOR_GENERATORS
label_desc: Use image node_id 1 to create a new LegacySSDAnchorGenerator object from inherited base classes: SSDAnchorGenerator, LegacyAnchorGenerator with example: obj = LegacySSDAnchorGenerator(strides, ratios, basesize_ratio_range, input_size, scale_major)