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:
parent
fb39bf3fbe
commit
ef8afd671c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user