Type ODM camera intrinsics to allow fractional values

This commit is contained in:
Afloat committed 2026-11-08 02:26:09 +08:00
1 parent fb39bf3fbe
commit ef8afd671c
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ def cameras2nerfds(
else: else:
raise ValueError("Unsupported ODM camera model: " + projection_type) 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"]: if projection_type in ["spherical", "equirectangular"]:
s["fl_x"] = s["w"] / 2.0 s["fl_x"] = s["w"] / 2.0