Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

537 B
Raw Blame

kornia.geometry.transform.crop_by_indices no longer reads pixels from the opposite edge for a box that starts left of or above the image. The part of the box outside the image is clipped, as past the right or bottom edge, and shape_compensation then applies; with "pad" the padding goes on the side where the box overflowed. The torch.compile path gives the same result. CenterCrop2D in its default slice mode now zero-pads a size larger than the input, as its resample mode does, instead of stretching the last row or column.