I am working on anomaly detection model (for PCBs) using Autoencoder , I am working on google Colab using free GPU. so as a first step I was trying to build my autoencoder and visualise the reconstruction of my training data(pictures without defects size 1,3 MP). I built a model of three layers with 150 epochs batch size =2, it gave me good results. I used SSIM loss function to calculate the difference between the test photos ( pictures with aomalies) and the training data(pictures without anomalies). The problem here that I want to visualize these differences with the HeatMap as I read in some articles that it is possible to localize anomalies in a pixel level .. I suppose it is related to the loss function that we use to calculate the difference.
do you have any idea what functions could help me visualize/Localize anomalies ?