NVlabs / instant-ngp

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

Uncaught exception: [json.exception.type_error.306] cannot use value() with null #1476

Closed Ch180907 closed 7 months ago

Ch180907 commented 1 year ago

When I run the test:./bin/instant-ngp --no-gui --scene data/nerf/fox/ --network data/nerf/fox/transforms.json

I get the results : 16:01:52 SUCCESS Initialized CUDA 11.4. Active GPU is #0: NVIDIA GeForce RTX 3080 [86] 16:01:52 SUCCESS Detected auxiliary GPUs: 16:01:52 SUCCESS #1: NVIDIA GeForce RTX 3080 [86] 16:01:52 SUCCESS #2: NVIDIA GeForce RTX 3080 [86] 16:01:52 SUCCESS #3: NVIDIA GeForce RTX 3080 [86] 16:01:52 INFO Loading NeRF dataset from 16:01:52 INFO data/nerf/fox/transforms.json 16:01:52 SUCCESS Loaded 50 images after 0s 16:01:52 INFO cam_aabb=[min=[1.0229,-1.33309,-0.378748], max=[2.46175,1.00721,1.41295]] 16:01:53 INFO Loading network config from: data/nerf/fox/transforms.json 16:01:53 ERROR Uncaught exception: [json.exception.type_error.306] cannot use value() with null

How could I resolve this error?

MichaelCurrie commented 7 months ago

See https://github.com/NVlabs/instant-ngp/discussions/395

--network is not for transforms.json; it is for passing the base.json configuration details.

instant-ngp doesn't like to be invoked away from the folder containing the exe. So try this:

cd /bin
./instant-ngp --no-gui --scene data/nerf/fox/

OR better, specify base.json explicitly:

./instant-ngp --no-gui --scene data/nerf/fox/ --network /bin/instant-ngp/configs/nerf/base.json
MichaelCurrie commented 7 months ago

This issue can be closed now.

Ch180907 commented 7 months ago

@MichaelCurrie Thanks for your reply.The problem has been solved.