mikh3x4 / nerf-navigation

Code for the Nerf Navigation Paper. Implements a trajectory optimiser and state estimator which use NeRFs as an environment representation
https://mikh3x4.github.io/nerf-navigation/
MIT License
185 stars 24 forks source link

RuntimeError: shape '[800, 800, -1]' is invalid for input of size 6220800 #19

Open huevoypatata opened 2 months ago

huevoypatata commented 2 months ago

I trained the tutorial model stonehenge, and got some varying results (more successful when the distance is shorter and less obstacles). Afterwards I decided to go on with my own Blender model to give it a test. After many trial and error, I managed to find a setting which worked fine until I receive a RuntimeError at 7% while simulating it. The log file is attached but the error goes like: RuntimeError: shape '[800, 800, -1]' is invalid for input of size 6220800

Is anyone else having the same problem simulating their own model or does anyone know how to solve this issue?

image image

Many Thanks!

huevoypatata commented 3 weeks ago

In case someone faces the same problem, I solved it by applying the following:

  1. Turn of the "render" option of the environment.
  2. Take the camera out of the environment.

and save your blender file before simulating.

image

Hope it helps!