MCPcopy
hub / github.com/junshutang/Make-It-3D / stack

Method stack

DPT/py3d_tools.py:332–347  ·  view source on GitHub ↗

Return a new batched Transform3d representing the batch elements from self and all the given other transforms all batched together. Args: *others: Any number of Transform3d objects Returns: A new Transform3d.

(self, *others: "Transform3d")

Source from the content-addressed store, hash-verified

330 return tinv
331
332 def stack(self, *others: "Transform3d") -> "Transform3d":
333 """
334 Return a new batched Transform3d representing the batch elements from
335 self and all the given other transforms all batched together.
336
337 Args:
338 *others: Any number of Transform3d objects
339
340 Returns:
341 A new Transform3d.
342 """
343 transforms = [self] + list(others)
344 matrix = torch.cat([t.get_matrix() for t in transforms], dim=0)
345 out = Transform3d(dtype=self.dtype, device=self.device)
346 out._matrix = matrix
347 return out
348
349 def transform_points(self, points, eps: Optional[float] = None) -> torch.Tensor:
350 """

Callers 15

rand_posesFunction · 0.80
fix_posesFunction · 0.80
circle_posesFunction · 0.80
sample_pdfFunction · 0.80
_exportMethod · 0.80
get_raysFunction · 0.80
testMethod · 0.80
refineMethod · 0.80
rand_posesFunction · 0.80
fix_posesFunction · 0.80

Calls 2

Transform3dClass · 0.85
get_matrixMethod · 0.80

Tested by

no test coverage detected