-
Notifications
You must be signed in to change notification settings - Fork 159
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
No module named '_swigfaiss' #5
Comments
OutOfRangeError Traceback (most recent call last) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/docproduct/predictor.py in init(self, pretrained_path, ffn_weight_file, bert_ffn_weight_file, embedding_file) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/docproduct/predictor.py in init(self, hidden_size, dropout, residual, pretrained_path, batch_size, max_seq_length, ffn_weight_file, bert_ffn_weight_file, load_pretrain, with_question, with_answer) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/docproduct/predictor.py in load_weight(model, bert_ffn_weight_file, ffn_weight_file) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/tensorflow/python/keras/engine/network.py in load_weights(self, filepath, by_name) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/tensorflow/python/training/tracking/util.py in restore(self, save_path) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in get_tensor(self, tensor_str) ~/anaconda3/envs/tfgpu/lib/python3.7/site-packages/tensorflow/python/framework/errors_impl.py in exit(self, type_arg, value_arg, traceback_arg) OutOfRangeError: Read less bytes than requested |
It looks like it's not finding Faiss. Did Faiss install without any errors? |
Am I missing something? Seems the issue content dose not match the title. It seems the OutOfRangeError is caused by loading the model weight. Please make sure the model weight file is good and its path is correct. |
Getting the same error.
|
Can you show the full error message? This looks like a FAISS install error. |
try the api: https://pocket-derm.firebaseapp.com/ |
conda install -c pytorch faiss-cpu/gpu for faiss install. It worked for me |
@masapasa did you install faiss on windows or mac or linux? |
Faiss is not supported on windows |
@harshit-saraswat try the api you dont have to install anything just send a post request :) |
any idea how i can solve this?
The text was updated successfully, but these errors were encountered: