mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 10:59:53 +08:00
Move masking abstraction
This commit is contained in:
1 parent
ade3b632de
commit
800461e7ae
6 files changed
+82
-38
No files matched your search
@@ -215,7 +215,7 @@ class HashEncoding(Encoding):
|
||||
assert in_tensor.shape[-1] == 3
|
||||
|
||||
in_tensor = in_tensor[..., None, :] # [..., 1, 3]
|
||||
scaled = in_tensor * self.scalings.view(1, 1, -1, 1).to(in_tensor.device) # [..., L, 3]
|
||||
scaled = in_tensor * self.scalings.view(-1, 1).to(in_tensor.device) # [..., L, 3]
|
||||
scaled_c = torch.ceil(scaled).type(torch.int32)
|
||||
scaled_f = torch.floor(scaled).type(torch.int32)
|
||||
|
||||
|
||||
Reference in new issue
Block a user