anhttran / extreme_3d_faces

Extreme 3D Face Reconstruction: Looking Past Occlusions
Other
785 stars 184 forks source link

Why is the shape you want to generate in ply.alpha instead of ply? #24

Closed LogicHolmes closed 5 years ago

LogicHolmes commented 5 years ago

Hello,My friend, When i run the testBatchModel.py the result is that np.savetxt(outFile + '.ply.alpha', features[0:99]) is not the ply! I don't understand why you produce the ply.alpha? Please you can help me!

anhttran commented 5 years ago

Dear, In that script, I saved the shape parameters as input for my C++ program in the next steps (to estimate pose, expression, shape+bump assembling, and soft-symmetry). I stored only parameters to save processing time.

If you want to save PLY file, you can do similar as in my other code (https://github.com/anhttran/3dmm_cnn/blob/master/demoCode/testBatchModel.py#L176,L178). Or a better way, config the 3D models you want to output in my C++ code (https://github.com/anhttran/extreme_3d_faces/blob/master/main.cpp#L139,L140).

I will soon provide a Dockerfile to make my C++ code easier to compile.

anhttran commented 5 years ago

I have updated my code. It now outputs the PLY also.