From ef8afd671cbfe4df2caf4afb4c60aa2b4f72d641 Mon Sep 17 00:00:00 2001 From: Afloat Date: Sun, 8 Nov 2026 02:26:09 +0800 Subject: [PATCH] Type ODM camera intrinsics to allow fractional values --- nerfstudio/process_data/odm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/process_data/odm_utils.py b/nerfstudio/process_data/odm_utils.py index f2379ae0d..b9a4bffc8 100644 --- a/nerfstudio/process_data/odm_utils.py +++ b/nerfstudio/process_data/odm_utils.py @@ -119,7 +119,7 @@ def cameras2nerfds( else: raise ValueError("Unsupported ODM camera model: " + projection_type) - s = {"w": int(camera["width"]), "h": int(camera["height"])} + s: Dict[str, float] = {"w": int(camera["width"]), "h": int(camera["height"])} if projection_type in ["spherical", "equirectangular"]: s["fl_x"] = s["w"] / 2.0