Skip to content

Faiss Indexing unable to modify the number of centroids #1277

Answered by MXueguang
vrdn-23 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vrdn-23,

You can modify it by the --pq-nbits option, by default it is 8, which gives 2^8 = 256 centroids.

index = faiss.IndexPQ(args.dim, args.pq_m, args.pq_nbits, faiss.METRIC_INNER_PRODUCT)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by vrdn-23
Comment options

You must be logged in to vote
1 reply
@lintool
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1274 on September 27, 2022 01:09.