def compare_images(img1, img2):
    img1 = normalize(img1)
img2 = normalize(img2)
diff = img1 - img2
m_norm = sum(abs(diff))
z_norm = norm(diff.ravel(), 0)
return m_norm, z_norm
How can I quantify difference between two images?