mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
add time (#1391)
* add time * fix black --------- Co-authored-by: LcDog <12553253+LcDog@users.noreply.github.com>
This commit is contained in:
1 parent
df784e96e7
commit
b653eef91c
3 files changed
+7
-4
No files matched your search
@@ -116,7 +116,6 @@ class TemporalGridEncodeFunc(Function):
|
||||
@staticmethod
|
||||
@custom_bwd
|
||||
def backward(ctx, grad):
|
||||
|
||||
inputs, temporal_row_index, embeddings, offsets, dy_dx = ctx.saved_tensors
|
||||
B, D, grid_channel, C, L, S, H, gridtype = ctx.dims
|
||||
align_corners = ctx.align_corners
|
||||
@@ -336,7 +335,7 @@ class TemporalGridEncoder(nn.Module):
|
||||
"""
|
||||
outputs = TemporalGridEncodeFunc.apply(
|
||||
xyz,
|
||||
self.get_temporal_index(time[:, 0]),
|
||||
self.get_temporal_index(time[:, 0].float()),
|
||||
self.embeddings,
|
||||
self.offsets,
|
||||
self.per_level_scale,
|
||||
|
||||
Reference in new issue
Block a user