def get_filters(layer):
    """
    Return a list of the filters of a convolutional layer

    :param layer: the layer (model.layers[n])
    :return: a list of filters
    """
    filters, biases = layer.get_weights()
    return [filters[:, :, 0, f] for f in range(filters.shape[3])]