Patch Similarity Explorer

Upload an image, click any point in it, and see a heatmap of how similar every other patch of the picture is to the one you clicked. Similarity is the cosine between DINOv3 patch features, so the model decides what counts as the same thing: the same fur, the same brick, the same kind of leaf, not the same colour.

  • Everything runs in your browser. The image is never uploaded to any server, and there is no server to upload it to.
  • The picture is resized to a square and cut into a grid of 16 by 16 pixel patches, each of which becomes one feature vector; the heatmap shows the cosine similarity of every patch to your reference patch.
  • Load a second image and the reference patch is compared against every patch of that one too, which finds like material and like parts across two pictures.
  • The Structure view drops the reference patch: PCA paints the feature space itself as colour, k-means turns it into an unsupervised segmentation.
  • Patch resolution is coarse by construction, so the map is upsampled back to full resolution along the edges of the original image.

Built with DINOv3 (ViT-S/16, 4-bit quantized, 15 MB), used under the DINOv3 License. This project is not affiliated with Meta. Private hobby project, non-commercial.