mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Merge branch 'main' of github.com:nerfstudio-project/nerfstudio into generative
This commit is contained in:
commit
0447b5219b
1 file changed
+1
-1
@@ -212,7 +212,7 @@ class Nerfstudio(DataParser):
|
|||||||
else:
|
else:
|
||||||
camera_type = CameraType.PERSPECTIVE
|
camera_type = CameraType.PERSPECTIVE
|
||||||
|
|
||||||
idx_tensor = torch.tensor(indices)
|
idx_tensor = torch.tensor(indices, dtype=torch.long)
|
||||||
fx = float(meta["fl_x"]) if fx_fixed else torch.tensor(fx, dtype=torch.float32)[idx_tensor]
|
fx = float(meta["fl_x"]) if fx_fixed else torch.tensor(fx, dtype=torch.float32)[idx_tensor]
|
||||||
fy = float(meta["fl_y"]) if fy_fixed else torch.tensor(fy, dtype=torch.float32)[idx_tensor]
|
fy = float(meta["fl_y"]) if fy_fixed else torch.tensor(fy, dtype=torch.float32)[idx_tensor]
|
||||||
cx = float(meta["cx"]) if cx_fixed else torch.tensor(cx, dtype=torch.float32)[idx_tensor]
|
cx = float(meta["cx"]) if cx_fixed else torch.tensor(cx, dtype=torch.float32)[idx_tensor]
|
||||||
|
|||||||
Reference in new issue
Block a user