Releases for 19.24.3/19.24.4/19.24.5/19.24.6 are on the way.
-
Download
.whl
files form Releases -
Install
pip install dlib-XX.XX.X-cpXX-cpXX-win_amd64.whl
The
XX
depends on your situation.
Open file C:\Users\XXX\AppData\Local\Programs\Python\PythonXX\Lib\site-packages\dlib\_init_.py
.
The XXX
depends on your situation and the whole filepath may be different based on your installation configuration.
If you use CUDA, configure the code:
if "ON" == "ON":
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudnn.lib"
)
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudart.lib"
)
The XX.X
depends on your situation or the whole filepath may be different based on your installation configuration.
If you do not use CUDA, delete the code:
if "ON" == "ON":
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudnn.lib"
)
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudart.lib"
)
Probably. I have not tried it.
import dlib
print(dlib.DLIB_USE_CUDA)
print(dlib.cuda.get_num_devices())
Or
Run the tempCodeRunnerFile.py
.
Whether the .whl
file works on your computer is a matter of luck.
If the .whl
file smooths your installation, you could send an e-mail of gratitude to me. This is enough to delight me for not less than a day and makes you incredibly sexually attractive.
If it does not work, please make an attempt at the following steps.
-
Try to install different versions of
.whl
files on the Release page. -
Try
.whl
files on Dlib_Windows_Python3.x. -
Download the source code from dlib (official) and install by yourself.
By the way, you could also send an e-mail to me to complain.