import tensorflow as tf

    y_centers = y_centers * stride[0]
    # x_centers = x_centers + offset[1]
    # y_centers = y_centers + offset[0]

    x_centers, y_centers = tf.meshgrid(x_centers, y_centers)

    widths, x_centers = tf.meshgrid(widths, x_centers)
    heights, y_centers = tf.meshgrid(heights, y_centers)

    anchor_centers = tf.stack([x_centers, y_centers], axis=2)
    anchor_centers = tf.reshape(anchor_centers, [-1, 2])

    anchor_sizes = tf.stack([widths, heights], axis=2)
    anchor_sizes = tf.reshape(anchor_sizes, [-1, 2])

    anchors = tf.concat([anchor_centers - .5 * anchor_sizes,
                         anchor_centers + .5 * anchor_sizes], 1)

    # anchors = box_utils.convert_yxyx_to_xyxy_format(anchors)

    return anchors


if __name__ == '__main__':
