Image inpainting means filling missing parts of an image so it looks natural. To check how well the model fills these gaps, we use metrics that compare the filled image to the original complete image.
Common metrics include:
- PSNR (Peak Signal-to-Noise Ratio): Measures how close the filled image is to the original. Higher PSNR means better quality.
- SSIM (Structural Similarity Index): Checks if the structure and textures look similar. Values closer to 1 mean the images are very alike.
- L1 or L2 Loss: Measures pixel differences. Lower values mean the inpainted area is closer to the original.
These metrics matter because they tell us if the model is realistically restoring missing parts, not just guessing random pixels.