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

Do we support loading obj data from shapenet? #98

Closed Zyq-scut closed 1 year ago

Zyq-scut commented 1 year ago

Hi, I try to load obj data from shapenet dataset via method "load_obj". However, the render result seem something wrong happened. Is this a bug or is just shapenet data not supported? Here are the render result and the ground truth. image image Could you give me some advice to fix it? Thanks a lot.

Zyq-scut commented 1 year ago

I have solved it!

D1noFuzi commented 1 year ago

@Zyq-scut how did you solve it? I am facing similar problems as ShapeNet has multiple texture files per model. The renderer constantly fails to render it properly.

Zyq-scut commented 1 year ago

@Zyq-scut how did you solve it? I am facing similar problems as ShapeNet has multiple texture files per model. The renderer constantly fails to render it properly.

Hi @D1noFuzi . The official implement of load_mlt does not support the form of shapenet. So I rewrite this method to load .mlt file.

wzking09 commented 10 months ago

@Zyq-scut how did you solve it? I am facing similar problems as ShapeNet has multiple texture files per model. The renderer constantly fails to render it properly.

Hi @D1noFuzi . The official implement of load_mlt does not support the form of shapenet. So I rewrite this method to load .mlt file.

Hi, can you share more details about 'load_mtl()' func? I tried to clip 'vt' to 0-1. Some of render results looks better and others not.