From d7d3a85906eefc8c41ab85c2f84acb2cb00296f4 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Fri, 10 Feb 2023 11:51:16 +0800 Subject: [PATCH] Update code Signed-off-by: shiyu22 --- faiss.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/faiss.py b/faiss.py index 4b8e0c8..eeac3fe 100644 --- a/faiss.py +++ b/faiss.py @@ -18,19 +18,6 @@ class Faiss(PyOperator): The path to faiss index file(defaults to './index.bin') or faiss index. kwargs The kwargs with index.search, refer to https://github.com/facebookresearch/faiss/wiki. And the parameter `k` defaults to 10. - - Examples: - - >>> import towhee - >>> res = ( - ... towhee.glob['path']('./*.jpg') - ... .image_decode['path', 'img']() - ... .image_embedding.timm['img', 'vec'](model_name='resnet50') - ... .faiss_search['vec', 'results'](findex='./faiss/faiss.index') - ... .to_list() - ... ) - [, - ] """ def __init__(self, findex, **kwargs): self.faiss_index = findex