def convert_to_absolute(values, shapes):
    """
    Convert a value from relative to absolute if it is not
    :param values: a List with two values for height and width
    :param shape: The shape of the image
    :return: Absolute values
    """
    return [int(value * shape) for value, shape in zip(values, shapes) if value < 1 and value > 0]