nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.52k stars 1.3k forks source link

Options for decimation and texture resolution on mesh export #2024

Open antithing opened 1 year ago

antithing commented 1 year ago

I am looking to export the highest possible resolution mesh and texture. I see that a decimation is run by ns-export poisson, and the texture exported byscripts/texture.py is only 1920 x 180 pixels.

Are there options to adjust the decimation (or skip it) and to use a higher resolution (8k) texture?

If not, this would be a great feature to add.

Also, is poisson the most accurate export to use? (from a nerfacto trained model, usiomng --pipeline.model.predict-normals True)

Thanks!

ethanweber commented 1 year ago

Hi, I think these are the parameters you are looking to adjust: https://github.com/nerfstudio-project/nerfstudio/blob/24d02515a9fa8852d66953e9d94d4bca17c4fc08/nerfstudio/scripts/exporter.py#L233-L234 Is that what you want to modify? And yes, the poisson export method should give you the best result in my experience.