Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

448 B
Raw Blame

kornia.geometry.transform.translate and shear, and the Translate and Shear modules, read an unbatched (2,) parameter as one shift or pair of factors, (1, 2), that serves every image. With one image, (C, H, W) or (1, C, H, W), they used to read its 2 components as 2 parameter sets and return the image twice, as a batch of 2, with no error; with 3 or more images they raised a RuntimeError. With 2 images the result is unchanged.