NVlabs / nvdiffrec

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

How can I change the camera pose? #89

Open bxcharlie opened 1 year ago

bxcharlie commented 1 year ago

When I use the dataset_llff, how to change the camera pose to adapt other render method that changed the camera pose.

jmunkberg commented 1 year ago

Hello,

I'm not sure if I understand the question. The camera matrix is computed here https://github.com/NVlabs/nvdiffrec/blob/main/dataset/dataset_llff.py#L85 from data read from the file poses_bounds.npy, in case of an LLFF dataset.

This file https://github.com/NVlabs/nvdiffrec/blob/main/dataset/dataset_mesh.py shows a case where we generate (random) poses on the fly.