Skip to content

eddiehe99/dlib-whl

Repository files navigation

README

Installation

pip install dlib-XX.XX.X-cpXX-cpXX-win_amd64.whl

The XX depends on your situation.


Configuration

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.

With CUDA

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.

Without CUDA

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.


Verification

import dlib

print(dlib.DLIB_USE_CUDA)
print(dlib.cuda.get_num_devices())

Warning

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, I highly recommend you download the source code and install by yourself. Besides, you could also send an e-mail to me to complain.

About

The wheel package files (.whl) of dlib for python 3.7, 3.8, 3.9, 3.10, and 3.11 on Windows_x64.

Resources

License

Stars

Watchers

Forks

Packages

No packages published