Skip to content

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

License

Notifications You must be signed in to change notification settings

eddiehe99/dlib-whl

Repository files navigation

README

Support for CUDA is on the way.

Installation

  1. Download .whl files form Releases

  2. Install

    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())

Or

Run the tempCodeRunnerFile.py.


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, please make an attempt at the following steps.

  1. Try to install different versions of .whl files on the Release page.

  2. Try .whl files on Dlib_Windows_Python3.x.

  3. Download the source code from dlib (official) and install by yourself.

P.S. The installation of cuDNN greater than 9.0.0 may cause weird errors. Please check out davisking/dlib#2979.

By the way, 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, 3.11 and 3.12 on Windows_x64.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages