def scale_tensor(tensor):
    """
    Norms values between 0 and 255 to vlaues between 0 and 1.

    Parameters
    ----------
    tensor: np.array
        array representing img-data

    Returns
    -------
    np.array
        normed array with values between 0 and 1
    """
    return tensor.astype('float32') / 255