NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
16k stars 1.93k forks source link

libGL error: No matching fbConfigs or visuals found #100

Closed miseon119 closed 2 years ago

miseon119 commented 2 years ago

I worked on docker container. I got this libGL error

root@aeb861f721e9:/workdir/instant-ngp# ./build/testbed --scene data/nerf/fox
00:25:37 INFO     Loading NeRF dataset from
00:25:37 INFO       data/nerf/fox/transforms.json
00:25:37 SUCCESS  Loaded 50 images of size 1080x1920 after 0s
00:25:37 INFO       cam_aabb=[min=[0.5,-129.67,0.5], max=[0.5,-129.67,0.5]]
00:25:37 INFO     Loading network config from: configs/nerf/base.json
00:25:37 INFO     GridEncoding:  Nmin=16 b=1.51572 F=2 T=2^19 L=16
00:25:37 INFO     Density model: 3--[HashGrid]-->32--[FullyFusedMLP(neurons=64,layers=3)]-->1
00:25:37 INFO     Color model:   3--[SphericalHarmonics]-->16+16--[FullyFusedMLP(neurons=64,layers=4)]-->3
00:25:37 INFO       total_encoding_params=13074912 total_network_params=10240
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Glfw Error 65543: GLX: Failed to create context: GLXBadFBConfig
00:25:37 ERROR    Uncaught exception: GLFW window could not be created.
Tom94 commented 2 years ago

Hi, unless you specifically set up docker to forward the GUI to your main operating system, you won't be able to run the GUI from within docker. See the docker thread for more info: https://github.com/NVlabs/instant-ngp/issues/20

If you just want to train models without a GUI, you can compile without linking to GL by using

cmake -DNGP_BUILD_WITH_GUI=OFF . -B build

That will side-step the failure to set up a window above.

miseon119 commented 2 years ago

Thanks a lot