MCPcopy Create free account
hub / github.com/Gabesarch/ICAL / gridcloud2d

Function gridcloud2d

TEACh/utils/basic.py:141–149  ·  view source on GitHub ↗
(B, Y, X, norm=False)

Source from the content-addressed store, hash-verified

139 return xyz
140
141def gridcloud2d(B, Y, X, norm=False):
142 # we want to sample for each location in the grid
143 grid_y, grid_x = meshgrid2d(B, Y, X, norm=norm)
144 x = torch.reshape(grid_x, [B, -1])
145 y = torch.reshape(grid_y, [B, -1])
146 # these are B x N
147 xy = torch.stack([x, y], dim=2)
148 # this is B x N x 2
149 return xy
150
151def gridcloud3d_py(Z, Y, X):
152 # we want to sample for each location in the grid

Callers

nothing calls this directly

Calls 1

meshgrid2dFunction · 0.85

Tested by

no test coverage detected