Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

293 B
Raw Blame

psnr, psnr_loss and PSNRLoss no longer overflow an integer tensor data range: max_val=torch.tensor(255, dtype=torch.uint8) with an MSE of 1 returned 0 dB instead of 48.13 dB, and an int16 range of 255 returned NaN. Python numbers and int64 or floating tensor ranges are unchanged.