Skip to content

Commit d521347

Browse files
committed
update version
1 parent c1064b8 commit d521347

16 files changed

+47
-46
lines changed

docs/index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@
230230
<div class="layui-form-item layui-form-text">
231231
<label class="layui-form-label">label list</label>
232232
<div class="layui-input-block">
233-
<textarea class="layui-textarea"
234-
name='label_list'></textarea>
233+
<textarea class="layui-textarea" name='label_list'></textarea>
235234
</div>
236235
</div>
237236
<div class="layui-form-item">

docs/index.js

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/interfaces/CV.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
751751
<br class="clear">
752752

753753
<footer>
754-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
754+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
755755
</footer>
756756

757757
<script> prettyPrint(); </script>

docs/interfaces/Cls.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
971971
<br class="clear">
972972

973973
<footer>
974-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
974+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
975975
</footer>
976976

977977
<script> prettyPrint(); </script>

docs/interfaces/Det.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
10071007
<br class="clear">
10081008

10091009
<footer>
1010-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
1010+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
10111011
</footer>
10121012

10131013
<script> prettyPrint(); </script>

docs/interfaces/Model.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
449449
<br class="clear">
450450

451451
<footer>
452-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
452+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
453453
</footer>
454454

455455
<script> prettyPrint(); </script>

docs/interfaces/Seg.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
903903
<br class="clear">
904904

905905
<footer>
906-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
906+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
907907
</footer>
908908

909909
<script> prettyPrint(); </script>

docs/interfaces/WebAI.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
20852085
<br class="clear">
20862086

20872087
<footer>
2088-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
2088+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
20892089
</footer>
20902090

20912091
<script> prettyPrint(); </script>

docs/interfaces/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
5656
<br class="clear">
5757

5858
<footer>
59-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
59+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
6060
</footer>
6161

6262
<script> prettyPrint(); </script>

docs/interfaces/webai.mjs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1 class="page-title">Source: webai.mjs</h1>
2727
<section>
2828
<article>
2929
<pre class="prettyprint source linenums"><code>import cv from './opencv.mjs'
30-
import ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@dev/dist/ort.all.bundle.min.mjs'
30+
import ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@dev/dist/ort.all.min.mjs'
3131

3232

3333
/**
@@ -733,7 +733,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="WebAI.
733733
<br class="clear">
734734

735735
<footer>
736-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 16:59:18 GMT+0800 (中国标准时间)
736+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Jul 08 2024 19:52:51 GMT+0800 (中国标准时间)
737737
</footer>
738738

739739
<script> prettyPrint(); </script>

index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@
229229
<div class="layui-form-item layui-form-text">
230230
<label class="layui-form-label">label list</label>
231231
<div class="layui-input-block">
232-
<textarea class="layui-textarea"
233-
name='label_list'></textarea>
232+
<textarea class="layui-textarea" name='label_list'></textarea>
234233
</div>
235234
</div>
236235
<div class="layui-form-item">

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ window.WebAI = WebAI
44
window.cv = cv
55
window.ort = ort
66

7-
export { WebAI as default, WebAI, cv, ort}
7+
export { WebAI as default, WebAI, cv, ort }

main.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import WebAI from './src/webai.mjs'
2-
import cv from './src/opencv.mjs'
1+
import { WebAI, cv, ort } from './src/webai.mjs'
32
import YAML from 'yamljs'
43

4+
window.WebAI = WebAI
5+
window.cv = cv
6+
window.ort = ort
7+
58

69
// 获取 Doms
710
const aDet = document.getElementById('aDet')
@@ -179,13 +182,13 @@ async function loadModel(MODE) {
179182
let modelURL = `${modelDir}/${MODE}/${modelName}/model.onnx.json`
180183
let modelConfig = `${modelDir}/${MODE}/${modelName}/configs.json`
181184
if (MODE == 'det') {
182-
model = new WebAI.Det(modelURL, modelConfig, {executionProviders: ['wasm']})
185+
model = new WebAI.Det(modelURL, modelConfig, { executionProviders: ['wasm'] })
183186
}
184187
else if (MODE == 'cls') {
185-
model = new WebAI.Cls(modelURL, modelConfig, {executionProviders: ['webgpu']})
188+
model = new WebAI.Cls(modelURL, modelConfig, { executionProviders: ['webgpu'] })
186189
}
187190
else if (MODE == 'seg') {
188-
model = new WebAI.Seg(modelURL, modelConfig, {executionProviders: ['wasm']})
191+
model = new WebAI.Seg(modelURL, modelConfig, { executionProviders: ['wasm'] })
189192
}
190193
inputFile.disabled = false
191194
buttonUser.disabled = false

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
"yamljs": "^0.3.0"
3838
},
3939
"dependencies": {}
40-
}
40+
}

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"compilerOptions": {
2+
"compilerOptions": {
33
"target": "es2016",
4-
"moduleResolution":"Node"
4+
"moduleResolution": "Node"
55
}
66
}

vite.config.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
export default {
2-
build: {
3-
lib: {
4-
entry: './index.js',
5-
formats: ['es']
6-
},
7-
rollupOptions: {
8-
output: {
9-
entryFileNames: `webai.min.mjs`
10-
}
11-
}
2+
build: {
3+
lib: {
4+
entry: './index.js',
5+
formats: ['es']
6+
},
7+
rollupOptions: {
8+
output: {
9+
entryFileNames: `webai.min.mjs`
10+
}
1211
}
12+
}
1313
}

0 commit comments

Comments
 (0)