π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
kornia.metrics.accuracy no longer reports accuracies above 100 % when target holds a different number of samples than pred: a one-entry target was compared with every row of pred and the count divided by 1, so accuracy(torch.tensor([[0.0, 1.0], [0.0, 1.0]]), torch.tensor([1])) returned [tensor(200.)]. Such calls now raise ShapeError, as do other malformed pred and target shapes. topk entries must be positive integers (Python or NumPy integers or integer tensors, not bools): a k of 0 used to report 0 %, and a negative k counted from the other end. A pred or target that is not a tensor now raises TypeCheckError, and tensors on different devices raise DeviceError.