4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-10 18:17:31 +08:00

Type ODM camera intrinsics to allow fractional values

This commit is contained in:
Afloat 2026-11-08 02:26:09 +08:00
parent fb39bf3fbe
commit ef8afd671c

View File

@ -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