Open xjdeng opened 4 years ago
you can enable GPU in colab and it's free. Runtime => Change runtime type and select GPU as Hardware accelerator.
That doesn't solve the problem. Sometimes, Colab denies me a GPU and this library stops working as a result.
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
@jbichene95 i tried to uninstall and reinstall dlib and still getting the error. @xjdeng could you solve this issue?
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