code: def __init__(
      self,
      stride=[16.0, 16.0],
      anchor_sizes=[32, 64, 128, 256, 512],
      aspect_ratios=[0.5, 1.0, 2.0],
      variance=[1.0, 1.0, 1.0, 1.0],
  ):
      super(AnchorGenerator, self).__init__()
      self.anchor_sizes = anchor_sizes
      self.aspect_ratios = aspect_ratios
      self.variance = variance
      self.stride = stride
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from paddle import fluid
  from paddle.fluid.param_attr import ParamAttr
  from paddle.fluid.initializer import Normal
  from paddle.fluid.regularizer import L2Decay
label_desc: Use image node_id 1 to create a new AnchorGenerator object from inherited base classes: object with example: obj = AnchorGenerator(stride, anchor_sizes, aspect_ratios, variance)