MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / translate2d

Function translate2d

datasets/augmentv2.py:84–89  ·  view source on GitHub ↗
(tx, ty, **kwargs)

Source from the content-addressed store, hash-verified

82 return torch.stack(elems, dim=-1).reshape(ref[0].shape + (len(rows), -1))
83
84def translate2d(tx, ty, **kwargs):
85 return matrix(
86 [1, 0, tx],
87 [0, 1, ty],
88 [0, 0, 1],
89 **kwargs)
90
91def translate3d(tx, ty, tz, **kwargs):
92 return matrix(

Callers 2

translate2d_invFunction · 0.85
__call__Method · 0.85

Calls 1

matrixFunction · 0.85

Tested by

no test coverage detected