-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make eye blinking #23
Comments
Hi, I think I removed some triangles that corresponded to forehead and maybe sides of the face, hence len(mesh) < official number of triangles. I think that the .txt file I used in the transition code was the original candide. The processed version refers to removing the triangles as mentioned above. That would not be required until line .. of the script you linked. |
I found an .obj file on my old machine that should correspond to the mesh used in the app, it is attached. As mentioned above you can open it in meshlab and easily check which triangle is which. You can then remove the corresponding rows from the mesh matrix in code to remove the triangles from the face swap. |
Hi, can you explain what exactly does not work? |
After face-swap, the expression on my face was distorted. And the eyes were still not closed. |
I see, one problem may be that the Perhaps it would be easier if you did as I suggested above and simply delete the rows of the original |
Thanks for great work. There is a lot of help for me
Although I saw other issue about eye blinking, I don't implement eye blinking.
What you said is removing eye parts of mesh (the triangles) that correspond to the eye regions.
What i know is
mean3DShape, blendshapes, mesh, idxs3D, idxs2D = utils.load3DFaceModel("candide.npz")
What you mentioned
I don't know where eye parts is in 175. So could you give me advice? Could you give me edidted candide.npz model which remove eye parts?
len(mesh) is differnt from 'FACE LIST' in candide3.wfm. why is it??
This candide3.wfm is the latest version of candide model(v3.1.6)
len(mesh) = 175
'FACE LIST' in candide3.wfm = 184
What do you think about?
Maybe are you deleting some parts in 'FACE LIST'?
What you said about model is 'processed version'
Your Code doesn't work transition between .txt to .npz.
Is transition code for your 'processed version' candide model?
Traceback (most recent call last):
File "candide.py", line 192, in
tempMode = np.zeros((1, mean3.shape[0], mean3.shape[1]))
IndexError: tuple index out of range
The text was updated successfully, but these errors were encountered: