mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Adding conversion to torch.float32 in get_interpolated_poses_many. (#1532)
This commit is contained in:
1 parent
bfaf11cd72
commit
7366456835
1 file changed
+1
-1
@@ -229,7 +229,7 @@ def get_interpolated_poses_many(
|
|||||||
traj = np.stack(traj, axis=0)
|
traj = np.stack(traj, axis=0)
|
||||||
k_interp = np.stack(k_interp, axis=0)
|
k_interp = np.stack(k_interp, axis=0)
|
||||||
|
|
||||||
return torch.tensor(traj), torch.tensor(k_interp)
|
return torch.tensor(traj, dtype=torch.float32), torch.tensor(k_interp, dtype=torch.float32)
|
||||||
|
|
||||||
|
|
||||||
def normalize(x: torch.Tensor) -> TensorType[...]:
|
def normalize(x: torch.Tensor) -> TensorType[...]:
|
||||||
|
|||||||
Reference in new issue
Block a user