I have 2 versions of tensorflow, cpu and gpu. And I am using conda to manage my environment. When I activate the cpu's one, dlib can run on GPU very well. But When I use the gpu's one, it just run on the cpu. I don't why, please help me.
There are some of my system information, I don't know it can give some information.
- Ubuntu 18.04LTS
- python 3.6
- CUDA 10.1
- tensorflow-gpu 1.9.0
- tensorflow 1.12.0
Test code
conda activate ML
ipython
>>> import dlib
>>> dlib.DLIB_USE_CUDA
True
The code above output True but the code below output False.
conda activate ML_GPU
ipython
>>> import dlib
>>> dlib.DLIB_USE_CUDA
False
I hope when I using GPU version tensorflow dlib can using my GPU just like the CPU's one. Is anyone can help?