Esempio n. 1
0
def cbam(shape=(img_height, img_width, img_channel)):
    depth = 50
    attention_module = 'cbam_block'
    model = resnet_v1(input_shape=shape,
                      depth=depth,
                      num_classes=num_classes,
                      attention_module=attention_module)
    return model
Esempio n. 2
0
def resnet152_se(shape=(img_height, img_width, img_channel)):
    depth = 152
    attention_module = 'se_block'
    model = resnet_v1(input_shape=shape,
                      depth=depth,
                      num_classes=num_classes,
                      attention_module=attention_module)
    return model