π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
psnr, psnr_loss and PSNRLoss compute float16 and bfloat16 images in float32, including a tensor data range. The result uses the promoted image dtype, also promoted with a tensor max_val dtype; a float32 tensor data range gives a float32 result for half-precision images. In float16, max_val**2 / mse overflowed, so every PSNR above 48.16 dB (8-bit quantization of a float image alone gives about 59 dB) came back as inf and psnr_loss gradients were NaN.