Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I use faiss1.7.2 to write the index, but now I need to read it using faiss1.6.0, while faiss1.6.0 can't recognize the fourcc of the index. #2373

Closed
2 tasks
lj1995-computer-vision opened this issue Jul 5, 2022 · 1 comment
Labels

Comments

@lj1995-computer-vision
Copy link

Summary

I use faiss1.7.2 to write the index, but now I need to read it using faiss1.6.0.

the fourcc of index is "Pcam", while faiss1.6.0 can't recognize it.

How can I transfer the index to "PcAm" version?

1.6.0write(PcAm)+1.7.2read: it's okay.
1.7.2write(Pcam)+1.6.0read: oh my god !

Platform

OS: Linux version 4.9.0-8-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.144-3 (2019-02-02)

py3.6.13,pip install faiss-cpu==x.x.x

Running on:

  • [√ ] CPU
  • GPU

Interface:

  • C++
  • [√ ] Python
@mdouze
Copy link
Contributor

mdouze commented Jul 6, 2022

New versions of FAISS can read old formats, but not the other way round.

You can manually get the PCA matrix with https://github.com/facebookresearch/faiss/wiki/Python-C---code-snippets#how-can-i-get-the-pca-matrix-in-numpy-from-a-pca-object

@mdouze mdouze added the question label Jul 6, 2022
@mdouze mdouze closed this as completed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants