nerfstudio-project / nerfstudio

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

Fix dimension mismatch between downscaled cameras and images in colmap. #3232

Closed jisung3d closed 4 hours ago

jisung3d commented 1 week ago

Issue: When running splatfacto with my custom dataset of images with varying resolutions, I encountered a dimension mismatch error between the downscaled cameras and images. This issue arises because the _downscale_images function in colmap_dataparser.py (L484) uses a fixed downscaling size for every image.

Proposed Solution: Modify _downscale_images to compute the downscaling size individually for each image to ensure compatibility with images of different resolutions.