MarekKowalski / FaceSwap

3D face swapping implemented in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modifying the face's mesh

seifselmi opened this issue · comments

Hello @MarekKowalski,

I asked you a month ago about how to blend a portion of the face, and you responded that I need to save and modify the mesh using MeshLab, In order to do that; what is the mesh that I need to save, is it blendshapes or mesh ? And how am I supposed to save them into obj file, because I tried to open the mesh file in the candide.npz but the MeshLab couldn't open that. Can you give me a quick guide because I'm new in manipulating meshes and working with 3D softwares.

Thanks.

commented

Hi,

Ok - here is a simple solution that should work:

  • download the .obj file here,
  • open it with meshlab,
  • find which faces (triangles) you want to remove,
  • get the indices of those faces using meshlab,
  • remove the entries with those indices from the mesh variable in zad2.py

Hope that helps.

Marek

Hi, Why I can't find the open mouth data in the blendshape when show it (add the meanshape)

commented

Hi,

I'm note sure what you mean, could you rephrase the question please?

Thanks,

Marek

how to get the face obj model? your link is outdated, i can't download it .