File tree Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ English | [中文版](./README_CN.md)
26
26
* Edit the model path in the code:
27
27
28
28
` ` ` js
29
- // ./ppdet/ main.js
29
+ // main.js
30
30
// model and configs file are best placed in the ' public' directory
31
31
32
32
...
33
- const modelURL = ' ./blazeface_1000e/model.onnx '
34
- const modelConfig = ' ./blazeface_1000e/configs.json '
33
+ const modelURL = [PATH TO MODEL]
34
+ const modelConfig = [PATH TO CONFIG]
35
35
...
36
36
` ` `
37
37
Original file line number Diff line number Diff line change 26
26
* 在代码中修改模型路径:
27
27
28
28
` ` ` js
29
- // ./ppdet/ main.js
29
+ // main.js
30
30
// 模型和配置文件最好放置于 ' public' 目录下
31
31
32
32
...
33
- const modelURL = ' ./blazeface_1000e/model.onnx '
34
- const modelConfig = ' ./blazeface_1000e/configs.json '
33
+ const modelURL = [模型文件路径]
34
+ const modelConfig = [配置文件路径]
35
35
...
36
36
` ` `
37
37
Original file line number Diff line number Diff line change @@ -116,27 +116,27 @@ English | [中文版](./README_CN.md)
116
116
117
117
## 5. Rapid deployment
118
118
119
- 1. Clone this repo:
119
+ 1. Clone WebAI.js-Examples repo:
120
120
121
121
```bash
122
122
$ git clone https://github.com/AgentMaker/WebAI.js-Examples
123
123
```
124
124
125
- 2. Switch to the directory for the example, like ' ./ppdet ' :
125
+ 2. Switch to the directory for the example:
126
126
127
127
```
128
- $ cd ./ppdet
128
+ $ cd ./ppcls
129
129
```
130
130
131
131
3. Edit the model path in the code:
132
132
133
133
```js
134
- // ./ppdet/ main.js
134
+ // main.js
135
135
// model and configs file are best placed in the ' public' directory
136
136
137
137
...
138
- const modelURL = ' ./blazeface_1000e/model.onnx '
139
- const modelConfig = ' ./blazeface_1000e/configs.json '
138
+ const modelURL = [PATH TO MODEL]
139
+ const modelConfig = [PATH TO CONFIG]
140
140
...
141
141
```
142
142
Original file line number Diff line number Diff line change 69
69
* [WebAI 的体验网站](https://agentmaker.github.io/WebAI.js) 中包含一个配置文件转换生成器
70
70
71
71
* 可通过这个程序快速将 PaddleClas 的配置文件转换为 WebAI.js 推理所需的配置文件
72
-
72
+
73
73
* 转换器目前仍在持续开发中,目前可能无法兼容所有 PaddleClas 的配置文件
74
74
75
75
2. 手动编写配置文件,样例如下:
114
114
` ` `
115
115
116
116
# # 5. 快速部署
117
- 1. 克隆项目 :
117
+ 1. 克隆 WebAI.js-Examples 项目 :
118
118
119
119
` ` ` bash
120
120
$ git clone https://github.com/AgentMaker/WebAI.js-Examples
129
129
3. 在代码中修改模型路径:
130
130
131
131
` ` ` js
132
- // ./ppdet/ main.js
132
+ // main.js
133
133
// 模型和配置文件最好放置于 ' public' 目录下
134
134
135
135
...
136
- const modelURL = ' ./blazeface_1000e/model.onnx '
137
- const modelConfig = ' ./blazeface_1000e/configs.json '
136
+ const modelURL = [模型文件路径]
137
+ const modelConfig = [配置文件路径]
138
138
...
139
139
` ` `
140
140
You can’t perform that action at this time.
0 commit comments