Closed lihyin closed 4 years ago
The colormap is normed for every single sample so that the maximum gradient value for every sample appears yellow. See 'save_imgs' in localization.py:
normed_grad = (grad[g] - np.min(grad[g])) / (np.max(grad[g]) - np.min(grad[g]))
A common normalization of the gradients should lead to different intensities for anomalies and good samples. Then a common setting of vmin and vmax in plt.imshow should do the trick.
Tried to test the false alarm by using the good sample. It lable the square as anomaly as well. Is it normal as expected?