Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

567 B
Raw Blame

RandomCrop with pad_if_needed=False now raises ValueError when size is larger than the input, after any explicit padding, on either axis. Previously it returned an interpolated upscale of the input under the crop's name: slice mode resized the available slice, and resample mode warped with a mis-scaled matrix that could blend in zero padding. It raises whether or not the batch is selected, so p < 1 does not hide it. Pass pad_if_needed=True to pad the input up to the crop size, or crop to a size that fits. Replaying recorded params is unchanged.