Closed phelps-matthew closed 2 years ago
Hi, sorry about the error. I took this visualizer script from some other code I was working on and did not test thoroughly. Let me take a look
I just removed the seg logic entirely, so it should be fine now. Originally I was working with video data, so this draws a line through the cameras, but breaks up the line when the numbering becomes non-consecutive. However when I adapted the code I broke it.
No worries! Thank you for taking a look and updating :)
Upon defining a dataset of images and running
bash proc_colmap.sh
, when runningview_data.py
I get an error when trying to pass an empty rotation matrix toscene.add_camera_frustrum
from the nerfvis library. The error stems from a faulty list ofsegs
as defined inview_data.py
Specifically,
segs
appears to be a list of 2-tuples corresponding to the connection between two pose matrices. Given my pose directory contents ofsegs
evaluates toIn the following loop
The indexing of
R
andt
thus yield errors.Just to get it running, I changed
seg
to an incremental list like[(0, 1), (1, 2), ... (n-1, n)]
, but I'm not sure what the original intention was here as the logic was unclear to me.