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
E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303 on Docker Debian 9 #34
Comments
Try to put the following code block in the first line of your program.
|
Alternatively, you can call the following command. It tries to allocate required GPU memory. If it cannot allocate, then continue with CPU.
|
I tried both methods, but the error doesn't go away:
The python code: from pprint import pprint
import os
from deepface import DeepFace
from deepface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace
os.environ["CUDA_VISIBLE_DEVICES"]=""
DeepFace.allocateMemory()
obj = DeepFace.verify([
["db/01_eu.jpg", "./db/S5/1.tif"],
])
pprint(obj) |
Even though you got an error, you can see the content of obj variable. It is interesting. |
Could you try to install tensorflow instead of tensorflow-gpu
|
|
Could you run the following code block?
|
Continues the same error:
|
I cannot see your keras versions. If line 3 has keras import, then your keras installation is problematic. Try to reinstall the package.
|
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.9 |
My fault. The correct version are below.
|
/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. |
Using TensorFlow backend.
You may still be able to access the file from the browser:
|
Oke, download this file manually and copy it to the /root /.deepface/weights folder. |
in api.py at line 83 change from graph = tf.get_default_graph() to graph = tf.compat.v1.get_default_graph() it will run.. getting same error but now i solved it... |
in the exception message, it says 'module 'tensorflow.python.keras.backend'. You are running tensorflow 2.0? Because this seems to come from 2.0. In previous message, I mentioned that you should have the following versions.
|
no response |
I have this error using debian on the docker, I would like to disable cuda support, is there how?
Below is the output:
Using TensorFlow backend.
^[[AUsing VGG-Face model backend and cosine distance.
2020-05-20 14:35:39.426369: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
Verification: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.46it/s]
{'pair_1': {'distance': 0.23476946353912354,
'max_threshold_to_verify': 0.4,
'model': 'VGG-Face',
'similarity_metric': 'cosine',
'verified': True}}
The text was updated successfully, but these errors were encountered: