NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.09k stars 222 forks source link

generate 256_tets.npz error #120

Open Lucklycat opened 1 year ago

Lucklycat commented 1 year ago

Thank you very much for your work ! I try to generate 256 tets,but I encountered the following error: image I tried to solve it, but didn't find a good way.

Excuse me, could you please give me a generated 256_ Tets.npy ?

constantm commented 1 year ago

Looks like a segfault? You can find a 256 TETGrid I generated here

Lucklycat commented 1 year ago

Looks like a segfault? You can find a 256 TETGrid I generated here

Thank you. i'm try。 but i get the result very bad, i only get upper right corner,Is it necessary to set scaling or alignment? image

constantm commented 1 year ago

Have you tried tweaking mesh_scale in your config?

Lucklycat commented 1 year ago

Have you tried tweaking mesh_scale in your config?

mesh_scale i set 2.4

constantm commented 1 year ago

Tweaking mesh_scale to something larger/smaller should help the TET mesh fit over the SDF

Lucklycat commented 1 year ago

Tweaking mesh_scale to something larger/smaller should help the TET mesh fit over the SDF

Thank you for your reply. i'am try to tweaking the mesh_scale,but the problem is also exist. Always in the upper right corner image

i think this problem is like this:https://github.com/NVlabs/nvdiffrec/issues/23 the tet grid is not centered, have you ever encountered this kind of problem,when i print the tet grid min/max,can see the world don't symmetric: image

AY1997 commented 1 year ago

hi, I met the same problem. Have you solved this and got the proper 256_tets.npy ?

adli-igc commented 1 year ago

The problem can be solved by centering the cube used in Quartet. Refer to https://github.com/NVlabs/nvdiffrec/issues/23 Create a new OBJ file with the given values and re-create your 256_tet from it. This has solved my problem