Unbork Radiance NeRF embedder init

This commit is contained in:
blepping 2025-09-09 15:50:33 -06:00
parent cc6e7d60fd
commit 0828916ef1

View File

@ -42,7 +42,9 @@ class NerfEmbedder(nn.Module):
# A linear layer to project the concatenated input features and
# positional encodings to the final output dimension.
self.embedder = operations.Linear(in_channels + max_freqs**2, hidden_size_input, dtype=dtype, device=device)
self.embedder = nn.Sequential(
operations.Linear(in_channels + max_freqs**2, hidden_size_input, dtype=dtype, device=device)
)
@lru_cache(maxsize=4)
def fetch_pos(self, patch_size: int, device: torch.device, dtype: torch.dtype) -> torch.Tensor: