Skip to content

Instantly share code, notes, and snippets.

@MaartenGr
Last active October 31, 2021 07:06
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 MaartenGr/2af4b0bbcf15d914ca11f22f34df4222 to your computer and use it in GitHub Desktop.
Save MaartenGr/2af4b0bbcf15d914ca11f22f34df4222 to your computer and use it in GitHub Desktop.
from concept import ConceptModel
# Train Concept using the pre-trained image embeddings
concept_model = ConceptModel()
concepts = concept_model.fit_transform(img_names,
image_embeddings=image_embeddings,
docs=selected_nouns)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment