shunsukesaito / PIFu

This repository contains the code for the paper "PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization"
https://shunsukesaito.github.io/PIFu/
Other
1.76k stars 340 forks source link

Query regarding computing Chamfer loss #7

Closed jsaisagar closed 4 years ago

jsaisagar commented 4 years ago

Dear Shunsukesaito,

Nice work. Thanks for releasing the code. May I know how to compute chamfer loss on the output meshes w.r.t ground truth meshes? As both the meshes will be in different coordinate systems.

Thanks,

shunsukesaito commented 4 years ago

In case you have ground truth mesh, you should have access to transformation matrix from model space to camera space. We simply apply the inverse of transformation matrix to place the reconstruction in the same coordinate system first. Then we uniformly sample 10k points on the target and reconstruction meshes using trimesh's sample_surface_even, which is used by chamfer distance computation.

zhangyahu1 commented 3 years ago

Is the alignment needed betwenn GT mesh and estiamted mesh when calculating the metrics? Thanks!