def loc_offset_to_scaled_value(v_g, v_d, d_s):
    """Offset training value for location distances.
    Idea d_x + z = x_g
    But learn 'z/d_s' instead of z directly
    Parameters
    ----------
    v_g : float
        location ground truth, either x_g or y_g
    v_d : float
        location of default box eiter d_x or d_y
    d_s : float
        default box size, either h or w

    Returns
    -------
    float
        l: scaled value to be learned by the network
    """
    # v_d + z = v_g
    z = (v_g - v_d)
    return z/d_s