Closed laolongboy closed 2 years ago
In the latest commit, I replaced the topology with full-face topology. Thus this problem should be fixed. Can you try again?
I found out that the problem is the index of 'trilist'. The trilist for face.tmesh
starts at -1. Adding 1 before rendering gives the correct result.
def create_syn(self, face, trg_angle=[0, 0, 0], include_mask=None):
view_angle_trg = self.camera_tri_angle(face.tmesh, pose_angle_deg=trg_angle)
mesh_cp = face.tmesh.copy()
mesh_cp.trilist = mesh_cp.trilist + 1
im, projected_mesh = rasterize_image(mesh_cp, self.img_shape, pose_angle_deg=trg_angle, cam_dist=4.5)
Thanks, that is weird. Not sure what causes this. Nevertheless, with the latest version (as far as I checked) this shouldn't be an issue if you follow my export script.
input:
render results after reconstruction:
code: