Skip to content

Instantly share code, notes, and snippets.

@aribornstein
Created May 20, 2021 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aribornstein/781df582a613af6d49f0783835a49b67 to your computer and use it in GitHub Desktop.
Save aribornstein/781df582a613af6d49f0783835a49b67 to your computer and use it in GitHub Desktop.
from flash.vision import ImageEmbedder
# Load finetuned task
embedder = ImageEmbedder(backbone="dino_vitb16")
# Perform inference on an image file
embeddings = embedder.predict("path/to/image.png")
print(embeddings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment