mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Merge branch 'main' of https://github.com/nerfstudio-project/nerfstudio
This commit is contained in:
commit
d2698e0a7a
1 file changed
+1
-1
@@ -193,7 +193,7 @@ def orientation_loss(
|
|||||||
"""
|
"""
|
||||||
w = weights
|
w = weights
|
||||||
n = normals
|
n = normals
|
||||||
v = viewdirs
|
v = viewdirs * -1
|
||||||
n_dot_v = (n * v[..., None, :]).sum(axis=-1)
|
n_dot_v = (n * v[..., None, :]).sum(axis=-1)
|
||||||
return (w[..., 0] * torch.fmin(torch.zeros_like(n_dot_v), n_dot_v) ** 2).sum(dim=-1)
|
return (w[..., 0] * torch.fmin(torch.zeros_like(n_dot_v), n_dot_v) ** 2).sum(dim=-1)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user