code: def setUp(self):
      super(RPNTest, self).setUp()
      self.num_anchors = 9
      # Use default settings.
      self.config = EasyDict(
          {
              "num_channels": 512,
              "kernel_shape": [3, 3],
              "rpn_initializer": {
                  "type": "variance_scaling_initializer",
                  "factor": 1.0,
                  "mode": "FAN_AVG",
                  "uniform": True,
              },
              "cls_initializer": {
                  "type": "truncated_normal_initializer",
                  "mean": 0.0,
                  "stddev": 0.01,
              },
              "bbox_initializer": {
                  "type": "truncated_normal_initializer",
                  "mean": 0.0,
                  "stddev": 0.01,
              },
              "l2_regularization_scale": 0.0005,
              "l1_sigma": 3.0,
              "activation_function": "relu6",
              "proposals": {
                  "pre_nms_top_n": 12000,
                  "post_nms_top_n": 2000,
                  "nms_threshold": 0.6,
                  "min_size": 0,
                  "clip_after_nms": False,
                  "filter_outside_anchors": False,
                  "apply_nms": True,
                  "min_prob_threshold": 0.0,
              },
              "target": {
                  "allowed_border": 0,
                  "clobber_positives": False,
                  "foreground_threshold": 0.7,
                  "background_threshold_high": 0.3,
                  "background_threshold_low": 0.0,
                  "foreground_fraction": 0.5,
                  "minibatch_size": 256,
              },
          }
      )
  
      # Use default anchor configuration values.
      self.base_size = 256
      self.scales = np.array([0.5, 1, 2])
      self.ratios = np.array([0.5, 1, 2])
      self.stride = 16
      tf.reset_default_graph()
  
file_path: luminoth/luminoth/models/fasterrcnn/rpn_test.py
imports: import numpy
  import tensorflow
  from easydict import EasyDict
  from luminoth.models.fasterrcnn.rpn import RPN
  from luminoth.utils.anchors import generate_anchors_reference
  from luminoth.utils.test import generate_gt_boxes, generate_anchors
label_desc: Use image node_id 1 for calling the RPNTest obj's underlying member method code with example usage: obj.setUp() without return types