How to run this model and get embeddings?

#1
by lumenggan - opened

Could you provide example of code how to run it?

DeepGHS org
edited Aug 18

use this: https://deepghs.github.io/imgutils/main/api_doc/tagging/wd14.html#get-wd14-tags

from imgutils.tagging import get_wd14_tags

embeddings = get_wd14_tags(
    'waifu_image.png',
    # model_name='EVA02_Large',
    fmt='embedding',
)
print(embeddings.shape, embeddings.dtype)

library's readme: https://github.com/deepghs/imgutils

@narugo thank you! I found the same library by searching "deepghs/wd14_tagger_with_embeddings" in github

lumenggan changed discussion status to closed

Sign up or log in to comment