anhttran / 3dmm_basic

An implementation of the classical 3DMM fitting algorithm
116 stars 31 forks source link

some qustions in code #10

Closed lyx323 closed 5 years ago

lyx323 commented 5 years ago

Hi anh, I have compiled the IRIS_3DMM successfully and I also got some results from different people images. But there are some questions in the code make me confused.

  1. what is the "inputLMFiles"? when I run the code, there always show "inputLMFiles 0" 2.In the model fold of CLM, there are so many .txt files, are they only the different choosing of shape model and patch model for CLM. Is it relative with CNNF?
anhttran commented 5 years ago

Dear, Sorry for my late response:

  1. My code supports to use pre-computed landmarks. You can save the pre-computed landmarks (68-point format) into text files with the same name as input images, except the extension as ".pts", into a folder. Then, you can provide the path to that landmark folder when running with "-flm" argument: https://github.com/anhttran/3dmm_basic/blob/master/modules/CLM/src/CLM_utils.cpp#L818

The log "inputLMFiles xxx" shows the number of provided landmark files. By default, there is no file provided and the program will execute CLNF to extract landmark points.

  1. They are CLNF models (https://github.com/TadasBaltrusaitis/CLM-framework/tree/master/lib/local/CLM/model). You can check their work for more details.

Many thanks, Anh