patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video
https://www.4dface.io
Apache License 2.0
786 stars 248 forks source link

How to change the shape&expression model in 4dface? #43

Closed nomorecoding closed 5 years ago

nomorecoding commented 6 years ago

I've tried to replace shape model, expression model and contour correspondence with the surrey 29587 version, but it aborted always, I wonder how could I use a higher resolution model to fit photos?

nomorecoding commented 6 years ago

I just changed models to high resolution version. But I find that 4dface couldn't fit the face and get a mesh, should I change anywhere else in the code?

patrikhuber commented 6 years ago

Hi, Switching to the high-res model should work. If it doesn't, please provide more information, like for example the actual error. If there isn't any error message, run a Debug build and check the line where it fails. Should be an easy fix.

nomorecoding commented 6 years ago

Thanks for your fast reply! It "works", I mean the program could run, but I get almost the same face model using different pictures. I'm not sure what should I do. I chose 10 iterations and 300.0 shape regularization by the way.

patrikhuber commented 5 years ago

It seems to me like it is working and there isn't any issue. Please feel free to re-open the issue with a better description / problem report if there is any issue. Thanks.