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