You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
Note: The example weights are quite large, the download might take some time
22
27
23
28
## Installation
29
+
24
30
You can install darknet with npm using the following command:
31
+
25
32
```
26
33
npm install darknet
27
34
```
35
+
28
36
If you'd like to enable CUDA and/or CUDANN, export the flags `DARKNET_BUILD_WITH_GPU=1` for CUDA, and `DARKNET_BUILD_WITH_CUDNN=1` for CUDANN, and rebuild:
37
+
29
38
```
30
39
export DARKNET_BUILD_WITH_GPU=1
31
40
export DARKNET_BUILD_WITH_CUDNN=1
@@ -35,50 +44,56 @@ npm rebuild darknet
35
44
You can enable OpenMP by also exporting the flag `DARKNET_BUILD_WITH_OPENMP=1`;
36
45
37
46
## Usage
47
+
38
48
To create an instance of darknet.js, you need a three things. The trained weights, the configuration file they were trained with and a list of the names of all the classes.
If you don't want to download that stuff manually, navigate to the `examples` directory and issue the `./example` command. This will download the necessary files and run some detections.
0 commit comments