bharat-b7 / MultiGarmentNetwork

Repo for "Multi-Garment Net: Learning to Dress 3D People from Images, ICCV'19"
282 stars 65 forks source link

How to calculate vertex-to-surface error? #20

Closed Qingcsai closed 4 years ago

Qingcsai commented 4 years ago

I wonder how to compute the vertex-to-surface error in the paper mentioned? I am a little confused by the meaning of the 'surface', could you explain in more detail? Besides, how to write the code of computing the vertex-to-surface error?... I want to reproduce the reconstruction precision of the paper (maybe a little bit difficult?... Here is the equation mentioned about vertex-to-surface error : image Thank you for explaining more detailedly!

bharat-b7 commented 4 years ago

Surface in the above equation refers to the mesh. To compute vertex-to-surface error: for every vertex on the source mesh find the nearest point (this need not be a vertex) on the target mesh and take the distance between the vertex and this point. I haven't tested it but closest_points() in the MPI mesh package (https://github.com/MPI-IS/mesh/blob/master/mesh/mesh.py) should compute the nearest point on the surface.

Qingcsai commented 4 years ago

I Got it! Thanks for your explanation! I will try the method you said!