mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 04:13:57 +08:00
Code cleanup (#234)
This commit is contained in:
1 parent
8b414bafab
commit
e35781fe85
14 files changed
+46
-68
No files matched your search
@@ -192,7 +192,7 @@ class RFFEncoding(Encoding):
|
||||
if covs is None:
|
||||
encoded_inputs = torch.sin(torch.cat([scaled_inputs, scaled_inputs + torch.pi / 2.0], dim=-1))
|
||||
else:
|
||||
input_var = torch.sum(((covs @ self.b_matrix)) * self.b_matrix, -2)
|
||||
input_var = torch.sum((covs @ self.b_matrix) * self.b_matrix, -2)
|
||||
encoded_inputs = expected_sin(
|
||||
torch.cat([scaled_inputs, scaled_inputs + torch.pi / 2.0], dim=-1), torch.cat(2 * [input_var], dim=-1)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user