ashawkey / nerf2mesh

[ICCV2023] Delicate Textured Mesh Recovery from NeRF via Adaptive Surface Refinement
https://me.kiui.moe/nerf2mesh/
MIT License
898 stars 88 forks source link

Question about exporting mesh #48

Open SunyuKy opened 1 year ago

SunyuKy commented 1 year ago

Thank you very much for your excellent work. When I use my own data set to output mesh, I get an error: RuntimeError: resolution must be [<:2048, <:2048], after reading the comments in the code, I understand that the highest resolution is only 2048 , Does this resolution refer to the resolution of the training image? I downsampled the image to below 2048 and still reported the same error. May I ask how should I solve this problem?

ashawkey commented 1 year ago

@SunyuKy Hi, have you modified the code? 2048 is the max resolution for nvdiffrast CUDA backend, but we use OpenGL backend by default. Also, the true resolution is multiplied by --ssaa 2, so you need to change that too.

anonymouslosty commented 1 year ago

Maybe you should try to modify the parameters --texture_size 2048 when use RasterizeCudaContext() . In this situation,the default resolution was 2048 in code but the resolution was set to 4096 in default opts.

HasiniSama commented 5 months ago

I had to log it and check, but for me adding --texture_size 1024 is the only one that worked.