Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

691 B
Raw Blame

Functions that flattened a batch with reshape(B, -1) or view(B, -1) now accept empty batches instead of raising "cannot reshape tensor of 0 elements" (#6266, group A): the 2D and 3D mutual-information losses and their FromRef modules, lovasz_softmax_loss, lovasz_hinge_loss and their modules, determinant_to_polynomial, ALIKED, XFeatModel and LoFTR. XFeat.detectAndCompute returns an empty list and XFeat.match_xfeat_star an empty list of matches for an empty batch. determinant_to_polynomial also accepts a non-contiguous input, which raised "view size is not compatible". A mutual-information signal with no samples raises a clear error instead of an IndexError.