Grading the Rebuild in Decibels

Learning to CompressEasy+10 XP+10

Grading the Rebuild in Decibels

An autoencoder compresses 8-bit grayscale photos, where every pixel is a whole number from 000 (black) to 255255255 (white). The reconstruction loss tells you the mean squared gap between the original and rebuilt pixels, but image quality is usually reported as PSNR (peak signal-to-noise ratio), measured in decibels:

PSNR=10log⁡10 ⁣(MAX2MSE)\text{PSNR} = 10 \log_{10}\!\left(\frac{\text{MAX}^2}{\text{MSE}}\right)PSNR=10log10​(MSEMAX2​)

Here MSE is the reconstruction loss, the mean of the squared pixel differences, and MAX is the largest value a pixel can hold in this image format. A higher PSNR means a closer copy.

Here is one 2×42 \times 42×4 patch, before and after a trip through the autoencoder.

Original

col 1col 2col 3col 4
row 15214020388
row 21723096161

Rebuilt

col 1col 2col 3col 4
row 16013319594
row 226216101153

What is the PSNR of the rebuilt patch, in decibels? Round your answer to 2 decimal places.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.