Find similarities ? #2423
Answered
by
shiyu22
delonleonard
asked this question in
Q&A
Find similarities ?
#2423
-
How do I find similarities between from towhee.dc2 import pipe, ops, DataCollection
img_pipe = (
pipe.input('url')
.map('url', 'img', ops.image_decode.cv2_rgb())
.map('img', 'vec', ops.image_text_embedding.blip(model_name='blip_itm_base_coco', modality='image'))
.output('img', 'vec')
)
text_pipe = (
pipe.input('text')
.map('text', 'vec', ops.image_text_embedding.blip(model_name='blip_itm_base_coco', modality='text'))
.output('text', 'vec')
)
DataCollection(img_pipe('./teddy.jpg'))
DataCollection(text_pipe('A teddybear on a skateboard in Times Square.')) |
Beta Was this translation helpful? Give feedback.
Answered by
shiyu22
Mar 1, 2023
Replies: 1 comment
-
@delonleonard You can use Milvus to load and search vectors, and more details you can refer to this tutorial. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
delonleonard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@delonleonard You can use Milvus to load and search vectors, and more details you can refer to this tutorial.