ascust / 3DMM-Fitting-Pytorch

A 3DMM fitting framework using Pytorch.
594 stars 95 forks source link

Why the face_shape need to minus the mean of meanshape? #19

Closed linziqu closed 2 years ago

linziqu commented 2 years ago

Hi, thanks for your work! I am wonder why the function in BFM09ReconModel below? face_shape = face_shape - \ self.meanshape.view(1, -1, 3).mean(dim=1, keepdim=True)

ascust commented 2 years ago

Hi,actually I followed someone else's procedure. It is just used to move the whole mesh a bit so that the origin is at round the center of the mesh.