nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
8.91k stars 1.18k forks source link

ODM transforms.json pov in opposite direction from ODM viewer. #3168

Open aerialtreework opened 1 month ago

aerialtreework commented 1 month ago

After I run ns-process-data odm, the transforms.json file has the cameras pointed in the opposite direction. The angles and positions all look fine, but the actual direction (if rotated around the vertical axis) is opposite of what it should be.

I've tried this with a couple different datasets taken from WebODM and have gotten the same results. I've doubled checked the camera povs in WebODM's viewer, and they are correct there before the transformations are applied.

I'm sure there is a line in the odm_utils.py file I could change, but I'm still very new to all this. I would guess one issue might be in the way odm_utils.py handles ODM (which has a reconstruction.json file) and how it handles WebODM (which doesn't produce reconstruction.json).

In the picture below, the images should be pointed toward the center of the arc but are pointed away instead.

image

aerialtreework commented 1 month ago

Per issue 2847 (https://github.com/nerfstudio-project/nerfstudio/pull/2847), the problem appears to be my use of WebODM instead of ODM. When I switched to using ODM, the cameras were in the correct orientation, and I got my NERF. I'll leave my issue open for now, in case there is interest in correcting the processing from WebODM outputs.