Functionquaternion_to_matrixConverts a batch of quaternions (w, x, y, z) to rotation matrices Args: quaternion (torch.Tensor): shape (..., 4), the quaternions to
eval_code/recons/models/moge/utils3d/torch/transforms.py:1023
Functionrecover_focal_shift_numpy(points: np.ndarray, mask: np.ndarray = None, focal: float = None, downsample_size: Tuple[int, int] = (64, 64)
eval_code/recons/models/moge/utils/geometry_numpy.py:115
Functionrotate_2d 3x3 matrix for 2D rotation around a center ``` [[Rxx, Rxy, tx], [Ryx, Ryy, ty], [0, 0, 1]] ``` Args:
eval_code/recons/models/moge/utils3d/torch/transforms.py:1168
Functionscale_2d Scale matrix for 2D scaling ``` [[s, 0, tx], [0, s, ty], [0, 0, 1]] ``` Args: scale (float | torch.Te
eval_code/recons/models/moge/utils3d/torch/transforms.py:1222
Functionsliding_window_2d(x: torch.Tensor, window_size: Union[int, Tuple[int, int]], stride: Union[int, Tuple[int, int]], dim: Union[in
eval_code/recons/models/moge/utils3d/torch/utils.py:48