reshow/PRNet-PyTorch

process uv

Closed this issue · 0 comments

Hi, do you know the meaning of the function process_uv
_def process_uv(uv_coordinates):
[uv_h, uv_w, uv_c] = default_uvmap_shape
uv_coordinates[:, 0] = uv_coordinates[:, 0] * (uv_w - 1)
uv_coordinates[:, 1] = uv_coordinates[:, 1] * (uv_h - 1)
uv_coordinates[:, 1] = uv_h - uv_coordinates[:, 1] - 1
uv_coordinates = np.hstack((uv_coordinates, np.zeros((uv_coordinates.shape[0], 1)))) # add z
return uv_coordinates
_