iterative / ldb-resources

Apache License 2.0
28 stars 7 forks source link

Add tf_hub_embed to apply-plugins. #42

Closed daavoo closed 1 year ago

daavoo commented 2 years ago

Like https://github.com/iterative/ldb-resources/pull/40 but allowing to use arbitrary model from tf hub https://tfhub.dev/s?module-type=text-embedding

ldb instantiate ds:chihuahua-muffin -t chihuahua-muffin \
--apply python ~/Desktop/iterative/ldb-resources/apply-plugins/tf_hub_embed.py \
https://tfhub.dev/google/imagenet/mobilenet_v2_050_192/feature_vector/5 \
mobilenet-embedding

Closes https://github.com/iterative/ldb/issues/246