Skip to content

Commit

Permalink
chore: add support for python 3.10 and 3.11; upgrade dlib from versio…
Browse files Browse the repository at this point in the history
…n 19.24.0 to 19.24.1; update README.md
  • Loading branch information
eddiehe99 committed May 28, 2023
1 parent 3d6a693 commit 1db2461
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Installation

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

Expand All @@ -14,13 +14,13 @@ 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.
The `XXX` depends on your situation or the whole filepath may be totally different based on your installation configuration.

### With CUDA

If you use CUDA, configure the code:

```
```python
if "ON" == "ON":
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudnn.lib"
Expand All @@ -30,13 +30,13 @@ if "ON" == "ON":
)
```

The `XX.X` depends on your situation.
The `XX.X` depends on your situation or the whole filepath may be totally different based on your installation configuration.

### Without CUDA

If you don't use CUDA, delete the code:
If you do not use CUDA, delete the code:

```
```python
if "ON" == "ON":
add_lib_to_dll_path(
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudnn.lib"
Expand All @@ -45,3 +45,26 @@ if "ON" == "ON":
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/vXX.X/lib/x64/cudart.lib"
)
```

Probably. I have not tried it.

---

## Verification

```python
import dlib

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

---

## Warnning

It is a matter of luck whether the `.whl` file works on your computer.

If the `.whl` file smooth your installation, you could send a e-mail of gratitude to me. This is enough to delight me not less than a day.

If it does not work, I highly recommend you to download the source code and install by yourself. Besides, you could also send a e-mail full of swear words or other trash to me.
Binary file removed dlib-19.24.0-cp37-cp37m-win_amd64.whl
Binary file not shown.
Binary file removed dlib-19.24.0-cp38-cp38-win_amd64.whl
Binary file not shown.
Binary file removed dlib-19.24.0-cp39-cp39-win_amd64.whl
Binary file not shown.
Binary file added dlib-19.24.1-cp310-cp310-win_amd64.whl
Binary file not shown.
Binary file added dlib-19.24.1-cp311-cp311-win_amd64.whl
Binary file not shown.
Binary file added dlib-19.24.1-cp37-cp37m-win_amd64.whl
Binary file not shown.
Binary file added dlib-19.24.1-cp38-cp38-win_amd64.whl
Binary file not shown.
Binary file added dlib-19.24.1-cp39-cp39-win_amd64.whl
Binary file not shown.

0 comments on commit 1db2461

Please sign in to comment.