Skip to content

Commit f295813

Browse files
committed
update readme
1 parent b6cf3ef commit f295813

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

demo_ncnn/README.md

+30-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Download and install Vulkan SDK from https://vulkan.lunarg.com/sdk/home
1818
### Step4.
1919
Clone NCNN repository
2020

21-
``` bash
21+
``` shell script
2222
git clone --recursive https://github.com/nihui/ncnn.git
2323
```
2424
Build NCNN following this tutorial: [Build for Windows x64 using VS2017](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-windows-x64-using-visual-studio-community-2017)
@@ -47,7 +47,7 @@ Download Vulkan SDK from https://vulkan.lunarg.com/sdk/home
4747
### Step3.
4848
Clone NCNN repository
4949

50-
``` bash
50+
``` shell script
5151
git clone --recursive https://github.com/nihui/ncnn.git
5252
```
5353

@@ -56,7 +56,7 @@ Build NCNN following this tutorial: [Build for Linux / NVIDIA Jetson / Raspberry
5656
### Step4.
5757
Build project
5858

59-
``` bash
59+
``` shell script
6060
cd <this-folder>
6161
mkdir build
6262
cd build
@@ -66,20 +66,42 @@ make
6666

6767
# Run demo
6868

69-
## Inference images
69+
Download NanoDet ncnn model.
70+
71+
Copy nanodet_m.param and nanodet_m.bin to demo program folder.
7072

71-
```bash
73+
## Webcam
7274

75+
```shell script
76+
nanodet_demo 0 0
7377
```
7478

75-
## Webcam
79+
## Inference images
80+
81+
```shell script
82+
nanodet_demo 1 IMAGE_FOLDER/*.jpg
83+
```
7684

77-
```bash
85+
## Inference video
7886

87+
```shell script
88+
nanodet_demo 2 VIDEO_PATH
7989
```
8090

8191
## Benchmark
8292

83-
```bash
93+
```shell script
94+
nanodet_demo 3 0
95+
```
96+
97+
****
98+
99+
Notice:
100+
101+
If benchmark speed is slow, try to limit omp thread num.
102+
103+
Linux:
84104

105+
```shell script
106+
export OMP_THREAD_LIMIT=4
85107
```

0 commit comments

Comments
 (0)