So, I have a cGAN model that generates random images like the ones below. Using python's ssim metric, I'm trying to generate an image that is at least 80% similar to the one on the left. I have generated bout 20,000 images and the maximum similarity I've seen is 76%. The images below received 76% similarity.
Is there a similarity metric that would be better suited for this purpose: I'd like to compare the black structure in the image and not necessarily its location in space. For instance, if I generated an image that looked exactly like the left image (same size and location of holes, same outline of the structure) but it was located higher or lower in the 64x128 pixel space, I would want that to be at least 90% similarity. Is there a metric like this?
Thanks.