Faiss: How to reset on index ?

Created on 6 Feb 2018  路  1Comment  路  Source: facebookresearch/faiss

Hey , I have a question about how to reset the index. I have a index continue adding features into itself like index.add(). If the memory occupation of index is larger than 6G, I will reset the index and the ntotal should be reset to 0. Is there any useful function in faiss ? I didn't find it in tutorial... Thank you very much~

question

Most helpful comment

index.reset() should clear out the contents but keep any learned parameters that it was trained on.

>All comments

index.reset() should clear out the contents but keep any learned parameters that it was trained on.

Was this page helpful?
0 / 5 - 0 ratings