π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
HausdorffERLoss and HausdorffERLoss3D raise TypeError for a pred or target that is not a tensor (was AttributeError) and DeviceError, a ValueError, for tensors on different devices (was torch's RuntimeError). Their constructors raise ValueError for an alpha that is NaN or +inf (the loss was NaN) and for a negative k (the loss was 0), and TypeError for a boolean k (counted as 0 or 1 erosions) or a k that is not an integer (TypeError in forward before); an unknown reduction raises the same NotImplementedError in the constructor instead of in forward. A k given as a NumPy integer or an integer tensor, k=0, a negative alpha and alpha=-inf still work.