mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
disallow fars <= nears (#881)
This commit is contained in:
parent
be70b86b18
commit
c53df92b9c
@ -84,6 +84,7 @@ class AABBBoxCollider(SceneBoxCollider):
|
||||
# clamp to near plane
|
||||
near_plane = self.near_plane if self.training else 0
|
||||
nears = torch.clamp(nears, min=near_plane)
|
||||
fars = torch.maximum(fars, nears + 1e-6)
|
||||
|
||||
return nears, fars
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user