Giter VIP home page Giter VIP logo

sample_the_earth's People

Contributors

mdouze avatar

Stargazers

 avatar  avatar

sample_the_earth's Issues

Some questions about faiss BinaryIndex

Good morning,
Mr.mdouze , i have saw you replied many questions about faiss at GitHub . I want to ask you some questions sincerely.
If i want to transfer the index from cpu to gpu ,and transfer the index from gpu to cpu , what interface or method should i use , i ran the following code but reported the following error:
#code
index_name = "BIVF32,SQfp16"
index_temp = faiss.index_binary_factory(dim, index_name.split(",")[-2] + ",Flat")
res = faiss.StandardGpuResources()
index_gpu = faiss.index_cpu_to_gpu(res,0,index_temp)
#code end
#error
Traceback (most recent call last):
File "my_train_ivf.py", line 130, in
train_idx_and_validate()
File "my_train_ivf.py", line 57, in train_idx_and_validate
index_gpu = faiss.index_cpu_to_gpu(res,0,index_temp)
File "/opt/conda/lib/python3.7/site-packages/faiss/init.py", line 448, in replacement_function
result = original_function(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'index_cpu_to_gpu'.
Possible C/C++ prototypes are:
faiss::gpu::index_cpu_to_gpu(faiss::gpu::GpuResources *,int,faiss::Index const *,faiss::gpu::GpuClonerOptions const *)
faiss::gpu::index_cpu_to_gpu(faiss::gpu::GpuResources *,int,faiss::Index const *)
#error end
In fact, i use method faiss.index_cpu_to_gpu(index_temp) like this early , but it occurs to reportd error also, i viewed the faiss code , and use faiss.index_cpu_to_gpu(res,0,index_temp).
Can you help me to find out the matter. I guess my server computer's faiss version is lower than the version i used in code ,but i can't sure it ,and i don't know how to see the faiss version of server computer.
If you have time to view my question and have any idea about it ,you can reply me email me any time.
Looking forward to you reply.

Best Regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.