ashawkey / nerf2mesh

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

Error when saving mesh in stage 0 #16

Closed trebladev closed 1 year ago

trebladev commented 1 year ago

Hi, Thinks for the amazing work. When I try to run the stage 0 by README.md python main.py data/nerf_synthetic/lego/ --workspace trial_syn_lego/ -O --bound 1 --scale 0.8 --dt_gamma 0 --stage 0 --lambda_tv 1e-8 It was report error

==> Finished Test.
100% 100/100 [00:24<00:00,  4.07it/s]
==> Saving mesh to trial_360_garden/mesh_stage0
[F glutil.cpp:332] eglGetDisplay() failed
[1]    2911345 abort (core dumped)

Can you give me some help?

ashawkey commented 1 year ago

@trebladev Hi, it seems you don't have OpenGL correctly installed. You may refer to this.

trebladev commented 1 year ago

@ashawkey Thanks for your reply. I found that I can not see any GPU information with command below

glxinfo -v | grep OpenGL

Then I install the libglvnd and reinstall the nvidia driver, Now I can see GPU INFO with glxinfo

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA TITAN X (Pascal)/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.89.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 525.89.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 525.89.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

The code was tested successful with CUDA 11.7 Thanks again.

trebladev commented 1 year ago

And I found the model of mip360 dataset's kitchen has some problem. I cannot open it with meshlab, and I cannnot open the picture neither.

ashawkey commented 1 year ago

Could you check it through the web renderer? It seems to be okay from my side.

trebladev commented 1 year ago

It is normal on the web renderer. I check the download, it is weird that I still cannot open it which download by git, but I can open it which download by click the download buttom on the page one by one. Anyway, thanks again for your patience. I will close this issue.