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 341 forks source link

Query regarding Sigma #54

Closed jsaisagar closed 4 years ago

jsaisagar commented 4 years ago

Hi,

I have my models scaled to unit box in meshlab. I have trained this data with sigma=5 in which i observed no change in the error. I have trained the same data with sigma 0.1 where I observed error decreasing. However, marching cubes error still persists even after 15th epoch. May I know if any changes to code should be incorporated from changing meshes to unit box?

Thanks,

shunsukesaito commented 4 years ago

In the paper, the sigma was in cm unit. If you rescale the objects, you need to adjust the sigma accordingly. Dumping out the sampled points after normalization as PLY or OBJ files and previewing it via meshlab is highly recommended.

jsaisagar commented 4 years ago

Hi,

The ply is as below.

Screenshot 2020-07-22 at 8 32 51 AM
shunsukesaito commented 4 years ago

You can load the normalized mesh file in the same viewer to see if the points are nicely distributed around the surface. If not, likely, you set sigma too big.

jsaisagar commented 4 years ago

Thanks for the reply. It worked by tweaking TrainDataset.py. Also, subtracting vertices with trimesh's mesh.center_mass also helps.

ujjawalcse commented 3 years ago

Hi @jsaisagar , How did you tweak the TrainDataset.py? I'm also getting marching cube error and the error value is 0.0000 if the sigma is 5. But when i used sigma=0.5, I'm getting error value 0.01. But I'm still getting marching cube error. As @shunsukesaito said,how to dump sampled points after normalization so that i can open in meshlab and get some insight? Please feel free to discuss. Thanks.