from typing import Tuple


def unit_center(
    indices: Tuple[int, int], image_size: Tuple[int, int], stride: int
) -> Tuple[float, float]:
    """Get single prior unit center.

    :param indices: current unit's indices tuple
    :param image_size: image shape tuple
    :param stride: stride for feature map
    :return: unit center coords
    """
    y_index, x_index = indices
    y_scale, x_scale = image_size[0] / stride, image_size[1] / stride
    x_center = (x_index + 0.5) / x_scale
    y_center = (y_index + 0.5) / y_scale
    return y_center, x_center