LansburyCH / relightable-nr

A Neural Rendering Framework for Free-Viewpoint Relighting (CVPR 2020)
Other
116 stars 25 forks source link

Sth wrong with my data precompute. #8

Open Lesley1103 opened 3 years ago

Lesley1103 commented 3 years ago

Hi,thank you for the code! I used my own data to run the precompyte.py, but got empty uv maps and the other maps. What the problem might be? By the way , is the global_RT essential for the data and how to set it correctly?

Thanks!

LansburyCH commented 3 years ago

If alpha_map is also empty (all black), then it is very likely that the camera extrinsics/intrinsics are incorrect. You can start by trying inverting the extrinsic matrix.

For global_RT, it depends on the data. It is used to put the mesh in a canonical pose (centered at origin, vertical axis aligned with y-axis), so that the generated inference views are more natural for human to look at. Also, it would make the environment map in a standard longitude-latitude looking. Please refer to our provided example mesh to get a feel of the canonical pose. If the mesh is already roughly in the canonical pose, then global_RT can be ignored.