@parameterized.parameters(('resnet', (640, 640)), ('resnet', (None, None)))
def test_builder(self, backbone_type, input_size):
    num_classes = 2
    input_specs = tf.keras.layers.InputSpec(shape=[None, input_size[0], input_size[1], 3])
    model_config = maskrcnn_cfg.MaskRCNN(num_classes=num_classes, backbone=backbones.Backbone(type=backbone_type))
    l2_regularizer = tf.keras.regularizers.l2(5e-05)
    _ = factory.build_maskrcnn(input_specs=input_specs, model_config=model_config, l2_regularizer=l2_regularizer)
@parameterized.parameters(('resnet', (640, 640)), ('resnet', (None, None)))
def test_builder(self, backbone_type, input_size):
    num_classes = 2
    input_specs = tf.keras.layers.InputSpec(shape=[None, input_size[0], input_size[1], 3])
    model_config = maskrcnn_cfg.MaskRCNN(num_classes=num_classes, backbone=backbones.Backbone(type=backbone_type))
    l2_regularizer = tf.keras.regularizers.l2(5e-05)
    _ = factory.build_maskrcnn(input_specs=input_specs, model_config=model_config, l2_regularizer=l2_regularizer)