Skip to content

Instantly share code, notes, and snippets.

@leoimpett
Created August 22, 2019 09:06
Show Gist options
  • Save leoimpett/003107d21fcd78adb68bebccb2ab3a79 to your computer and use it in GitHub Desktop.
Save leoimpett/003107d21fcd78adb68bebccb2ab3a79 to your computer and use it in GitHub Desktop.
# Remember to install the imagegraph Python library thus:
!pip install git+https://github.com/leoimpett/pyimagegraph
from imagegraph import *
imL00 = loadIIIFManifest("https://media.nga.gov/public/manifests/nga_highlights.json")
vL01 = getNNEmbedding(imL00)
vL02 = distanceMatrix(vL01,vL01)
_ = displayNearestNeighbors(imL00,vL02)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment