π Geometric Computer Vision Library for Spatial AI
warp_affine, warp_perspective, warp_affine3d, warp_perspective3d, warp_grid, warp_grid3d, homography_warp, homography_warp3d, the thin plate spline functions for float32 points and the builders get_rotation_matrix2d, get_affine_matrix2d, get_affine_matrix3d and get_projective_transform now run their matrix products outside a caller's torch.autocast region, except in a scripted call, so these functions, rotate, scale, the crops and the output images of the geometric augmentations built on them give the same result in and out of it, and mixed float32 and half-precision inputs, such as a half-precision matrix a model predicts under AMP with a float32 image, run in float32 there. Under autocast(bfloat16) a float32 warp of a [0, 1] image was up to 0.97 off and still returned float32, and the builders returned a bfloat16 matrix for float32 inputs.