For autoencoders working with images, the main goal is to recreate the input image as closely as possible. So, we use reconstruction error metrics like Mean Squared Error (MSE) or Mean Absolute Error (MAE). These numbers tell us how different the output image is from the input image. A smaller error means the autoencoder is better at capturing important details.
Sometimes, if the autoencoder is used for anomaly detection, we look at the reconstruction error to spot unusual images. Higher error means the image is different from what the model learned.