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

Failed building wheel for faiss-gpu #3

Open
fire717 opened this issue May 12, 2023 · 1 comment
Open

Failed building wheel for faiss-gpu #3

fire717 opened this issue May 12, 2023 · 1 comment

Comments

@fire717
Copy link

fire717 commented May 12, 2023

while run pip install gedml

my env:

ubuntu18
python3.8
pytorch1.8.2
cuda11.1

@zbr17
Copy link
Owner

zbr17 commented May 16, 2023

[Possible cause] Sorry for the late reply. We need to specify the faiss-gpu version as 1.5.3, which may not be compatible with the latest PyTorch and python.

[Solution] It is ok to install gedml without faiss-gpu package. We write the related code in src/gedml/core/evaluators/metrics.py as follows (Line 10-17):

# faiss
try:
    import faiss
except ModuleNotFoundError:
    logging.warning("Faiss Package Not Found! (metrics package)")

_USE_FAISS_ = False
_NORMALIZE_ = True

You need to keep the flag _USE_FAISS_ to be False and delete the faiss-gpu related item in requirements.txt and try to re-install again.


You can always contact me if any other problem occurs. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants