Incorrect normal color
JuewenPeng opened this issue · 5 comments
JuewenPeng commented
hbb1 commented
JuewenPeng commented
hbb1 commented
what do you mean 'weird'? I think the normal looks just fine.
JuewenPeng commented
hbb1 commented
Ahhhh, this is that we visualize the normal in view space while our default output is world space.
To render image in view space with color like the teaser,
# get normal map
# transform normal from view space to world space
render_normal = allmap[2:5]
render_normal = (render_normal.permute(1,2,0) @ (viewpoint_camera.world_view_transform[:3,:3].T)).permute(2,0,1)
# render the view space normal like the teaser figure
view_normal = -allmap[2:5]