Faiss: Question: Executing FAISS inside an iOS/Android application

Created on 11 Apr 2018  路  7Comments  路  Source: facebookresearch/faiss

Question

Is it possible to call functions from the compiled Faiss files from within an app (or in an environment/OS that is different than what the FAISS files were compiled in) ?

If not ,is there a way to compile Faiss files to execute in an iOS environment ?
Thanks!

out-of-scope question

All 7 comments

You'd need to cross-compile Faiss for the target platform, which may need slight tweaks of parts of the code, but it is technically possible. Feel free to submit a PR!

@beauby thanks , But I can't find an option to compile faiss for iOS. Will MacOS compiled FAISS work in iOS ?

There is no option to compile faiss for iOS, you will have to look into cross-compilation of libraries for iOS, as a version of Faiss compiled for MacOS will not directly work in iOS.

Ref for people interested in running Faiss on iOS: https://github.com/facebookresearch/faiss/projects/3.

@beauby Thanks for creating a project. I will try to do it myself.

For others , I found this : https://github.com/szanni/ios-autotools

Haven't tried it yet but looks promising

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mylyu picture mylyu  路  3Comments

linghuang picture linghuang  路  3Comments

maozezhong picture maozezhong  路  3Comments

zjjott picture zjjott  路  3Comments

jukaradayi picture jukaradayi  路  3Comments