You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-4-2d57e5cbaae3> in <module>()
----> 1 face_encoder = dlib.face_recognition_model_v1(face_recognition_model)
RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-wheel-b9ck8go0/dlib/dlib/cuda/gpu_data.cpp:201. code: 100, reason: no CUDA-capable device is detected
---------------------------------------------------------------------------
Note that this works fine on a GPU instance on Google Colab but not on a cpu-only one. And sometimes, I can't get a GPU instance on Colab which makes it impossible to run some code the uses the face_encoder (which should still work at a reasonable speed on the CPU.)
the problem here is that the version of dlib that comes preinstalled with colab is configured to work with GPU.
the work around here is either to pip uninstall the default dlib and pip install a new one ,or use virtual environments to isolate that dependency
Description
My face encoder doesn't work when running on a CPU-only instance of Google Colab because dlib seems to expect a GPU.
What I Did
And got the following error:
Note that this works fine on a GPU instance on Google Colab but not on a cpu-only one. And sometimes, I can't get a GPU instance on Colab which makes it impossible to run some code the uses the face_encoder (which should still work at a reasonable speed on the CPU.)
Here's a link to my Google Colab notebook to reproduce this: https://colab.research.google.com/drive/1wdCrks6Mdx-O9A77umQKUb8wCk8i43Uu
The text was updated successfully, but these errors were encountered: