-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Hey, i am stuck with this error at the function: def trilinear_interp(self, x, voxel_min_vertex, voxel_max_vertex, voxel_embedds)
in class HashEmbedder(nn.Module):
RuntimeError: The size of tensor a (2) must match the size of tensor b (3) at non-singleton dimension 2
Emerging at the following line:
c00 = voxel_embedds[:,0]*(1-weights[:,0][:,None]) + voxel_embedds[:,4]*weights[:,0][:,None]
My input was a 3D coordinate, [X, Y, Z], and I do not see where I can reshape or change, because its the voxel embedding that is the problem:
Considering an input with 3 dimensions, and the hash embedding having 2 dimensions, how does this even work? The following is the specs in the function itself:
- x: B x 3
- voxel_min_vertex: B x 3
- voxel_max_vertex: B x 3
- voxel_embedds: B x 8 x 2
- weights = (x - voxel_min_vertex)/(voxel_max_vertex-voxel_min_vertex) # B x 3
Please help!
Metadata
Metadata
Assignees
Labels
No labels