mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-27 11:30:11 +08:00
Fix a bug of random quaternions (#2687)
fix a bug for random quaternions
This commit is contained in:
1 parent
626441e15e
commit
f7a49563a0
1 file changed
+1
-1
@@ -60,7 +60,7 @@ def random_quat_tensor(N):
|
|||||||
torch.sqrt(1 - u) * torch.sin(2 * math.pi * v),
|
torch.sqrt(1 - u) * torch.sin(2 * math.pi * v),
|
||||||
torch.sqrt(1 - u) * torch.cos(2 * math.pi * v),
|
torch.sqrt(1 - u) * torch.cos(2 * math.pi * v),
|
||||||
torch.sqrt(u) * torch.sin(2 * math.pi * w),
|
torch.sqrt(u) * torch.sin(2 * math.pi * w),
|
||||||
torch.sqrt(u) * torch.sin(2 * math.pi * w),
|
torch.sqrt(u) * torch.cos(2 * math.pi * w),
|
||||||
],
|
],
|
||||||
dim=-1,
|
dim=-1,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user