mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
Fix a bug of random quaternions (#2687)
fix a bug for random quaternions
This commit is contained in:
parent
626441e15e
commit
f7a49563a0
@ -60,7 +60,7 @@ def random_quat_tensor(N):
|
||||
torch.sqrt(1 - u) * torch.sin(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.cos(2 * math.pi * w),
|
||||
],
|
||||
dim=-1,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user