@ultralytics/yolo 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/package.json +1 -1
- package/pkg/package.json +1 -1
- package/pkg/ultralytics_inference_web.d.ts +4 -4
- package/pkg/ultralytics_inference_web.js +15 -15
- package/pkg/ultralytics_inference_web_bg.wasm +0 -0
- package/pkg/ultralytics_inference_web_bg.wasm.d.ts +4 -4
package/README.md
CHANGED
|
@@ -208,7 +208,8 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
|
|
|
208
208
|
|
|
209
209
|
> Ultralytics ≥8.4 uses the `quantize` argument instead of the deprecated
|
|
210
210
|
> `half=True` / `int8=True` flags. For ONNX the supported values are
|
|
211
|
-
> `32`/`fp32` (default), `16`/`fp16`, and `8`/`int8
|
|
211
|
+
> `32`/`fp32` (default), `16`/`fp16`, and `8`/`int8`; the old flags still work
|
|
212
|
+
> but emit a deprecation warning.
|
|
212
213
|
|
|
213
214
|
- **Runtime assets**: on first load, `ort-web` fetches the ONNX Runtime Web wasm
|
|
214
215
|
bundle (~25 MB, browser-cached afterward) from `cdn.pyke.io`. If you set a
|
package/README.zh-CN.md
CHANGED
|
@@ -193,7 +193,8 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
|
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
> Ultralytics ≥8.4 使用 `quantize` 参数,取代已弃用的 `half=True` / `int8=True` 标志。
|
|
196
|
-
> 对于 ONNX,支持的取值为 `32`/`fp32`(默认)、`16`/`fp16` 和 `8`/`int8
|
|
196
|
+
> 对于 ONNX,支持的取值为 `32`/`fp32`(默认)、`16`/`fp16` 和 `8`/`int8`;旧标志
|
|
197
|
+
> 仍可使用,但会触发弃用警告。
|
|
197
198
|
|
|
198
199
|
- **运行时资源**:首次加载时,`ort-web` 会从 `cdn.pyke.io` 获取 ONNX Runtime Web 的 wasm 包
|
|
199
200
|
(约 25 MB,之后由浏览器缓存)。如果你设置了 Content-Security-Policy,请在
|
package/package.json
CHANGED
package/pkg/package.json
CHANGED
|
@@ -200,10 +200,10 @@ export interface InitOutput {
|
|
|
200
200
|
readonly yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
|
|
201
201
|
readonly yolopipeline_task: (a: number, b: number) => void;
|
|
202
202
|
readonly start: () => void;
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
203
|
+
readonly __wasm_bindgen_func_elem_2020: (a: number, b: number, c: number, d: number) => void;
|
|
204
|
+
readonly __wasm_bindgen_func_elem_2624: (a: number, b: number, c: number, d: number) => void;
|
|
205
|
+
readonly __wasm_bindgen_func_elem_2020_2: (a: number, b: number, c: number, d: number) => void;
|
|
206
|
+
readonly __wasm_bindgen_func_elem_2648: (a: number, b: number, c: number, d: number) => void;
|
|
207
207
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
208
208
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
209
209
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -734,7 +734,7 @@ function __wbg_get_imports() {
|
|
|
734
734
|
const a = state0.a;
|
|
735
735
|
state0.a = 0;
|
|
736
736
|
try {
|
|
737
|
-
return
|
|
737
|
+
return __wasm_bindgen_func_elem_2648(a, state0.b, arg0, arg1);
|
|
738
738
|
} finally {
|
|
739
739
|
state0.a = a;
|
|
740
740
|
}
|
|
@@ -924,18 +924,18 @@ function __wbg_get_imports() {
|
|
|
924
924
|
return addHeapObject(ret);
|
|
925
925
|
},
|
|
926
926
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
927
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
928
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
927
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 694, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
928
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2020);
|
|
929
929
|
return addHeapObject(ret);
|
|
930
930
|
},
|
|
931
931
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
932
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
933
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
932
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 919, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
933
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2624);
|
|
934
934
|
return addHeapObject(ret);
|
|
935
935
|
},
|
|
936
936
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
937
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("boolean")], shim_idx:
|
|
938
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
937
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("boolean")], shim_idx: 694, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
938
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2020_2);
|
|
939
939
|
return addHeapObject(ret);
|
|
940
940
|
},
|
|
941
941
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -1022,10 +1022,10 @@ function __wbg_get_imports() {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
|
-
function
|
|
1025
|
+
function __wasm_bindgen_func_elem_2020(arg0, arg1, arg2) {
|
|
1026
1026
|
try {
|
|
1027
1027
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1028
|
-
wasm.
|
|
1028
|
+
wasm.__wasm_bindgen_func_elem_2020(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1029
1029
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1030
1030
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1031
1031
|
if (r1) {
|
|
@@ -1036,10 +1036,10 @@ function __wasm_bindgen_func_elem_1953(arg0, arg1, arg2) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
|
-
function
|
|
1039
|
+
function __wasm_bindgen_func_elem_2624(arg0, arg1, arg2) {
|
|
1040
1040
|
try {
|
|
1041
1041
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1042
|
-
wasm.
|
|
1042
|
+
wasm.__wasm_bindgen_func_elem_2624(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1043
1043
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1044
1044
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1045
1045
|
if (r1) {
|
|
@@ -1050,10 +1050,10 @@ function __wasm_bindgen_func_elem_2557(arg0, arg1, arg2) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
function
|
|
1053
|
+
function __wasm_bindgen_func_elem_2020_2(arg0, arg1, arg2) {
|
|
1054
1054
|
try {
|
|
1055
1055
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1056
|
-
wasm.
|
|
1056
|
+
wasm.__wasm_bindgen_func_elem_2020_2(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1057
1057
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1058
1058
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1059
1059
|
if (r1) {
|
|
@@ -1064,8 +1064,8 @@ function __wasm_bindgen_func_elem_1953_2(arg0, arg1, arg2) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function
|
|
1068
|
-
wasm.
|
|
1067
|
+
function __wasm_bindgen_func_elem_2648(arg0, arg1, arg2, arg3) {
|
|
1068
|
+
wasm.__wasm_bindgen_func_elem_2648(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
1071
1071
|
|
|
Binary file
|
|
@@ -19,10 +19,10 @@ export const yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d:
|
|
|
19
19
|
export const yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
|
|
20
20
|
export const yolopipeline_task: (a: number, b: number) => void;
|
|
21
21
|
export const start: () => void;
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
22
|
+
export const __wasm_bindgen_func_elem_2020: (a: number, b: number, c: number, d: number) => void;
|
|
23
|
+
export const __wasm_bindgen_func_elem_2624: (a: number, b: number, c: number, d: number) => void;
|
|
24
|
+
export const __wasm_bindgen_func_elem_2020_2: (a: number, b: number, c: number, d: number) => void;
|
|
25
|
+
export const __wasm_bindgen_func_elem_2648: (a: number, b: number, c: number, d: number) => void;
|
|
26
26
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
27
27
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
28
28
|
export const __wbindgen_export3: (a: number) => void;
|