@ultralytics/yolo 0.0.36 → 0.0.38
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 -2
- package/README.zh-CN.md +2 -2
- 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 +12 -12
- package/pkg/ultralytics_inference_web_bg.wasm +0 -0
- package/pkg/ultralytics_inference_web_bg.wasm.d.ts +4 -4
package/README.md
CHANGED
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
[](https://arxiv.org/abs/2606.03748)
|
|
28
28
|
|
|
29
29
|
[](https://discord.com/invite/ultralytics)
|
|
30
|
-
[](https://community.ultralytics.com
|
|
30
|
+
[](https://community.ultralytics.com)
|
|
31
31
|
[](https://www.reddit.com/r/Ultralytics/)
|
|
32
32
|
|
|
33
33
|
</div>
|
|
34
34
|
|
|
35
|
-
Run [Ultralytics](https://www.ultralytics.com
|
|
35
|
+
Run [Ultralytics](https://www.ultralytics.com) YOLO models directly in the browser,
|
|
36
36
|
with no server and no Python. It runs on **WebGPU** (with an automatic CPU/wasm
|
|
37
37
|
fallback) and covers detection, segmentation, pose, classification, OBB,
|
|
38
38
|
semantic segmentation, and depth estimation, behind a small TypeScript API with a built-in
|
package/README.zh-CN.md
CHANGED
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
[](https://arxiv.org/abs/2606.03748)
|
|
28
28
|
|
|
29
29
|
[](https://discord.com/invite/ultralytics)
|
|
30
|
-
[](https://community.ultralytics.com
|
|
30
|
+
[](https://community.ultralytics.com)
|
|
31
31
|
[](https://www.reddit.com/r/Ultralytics/)
|
|
32
32
|
|
|
33
33
|
</div>
|
|
34
34
|
|
|
35
|
-
直接在浏览器中运行 [Ultralytics](https://www.ultralytics.com
|
|
35
|
+
直接在浏览器中运行 [Ultralytics](https://www.ultralytics.com) YOLO 模型,无需服务器,也无需
|
|
36
36
|
Python。本库基于 **WebGPU**(并自动回退到 CPU/wasm),支持检测、分割、姿态、分类、OBB、语义分割和
|
|
37
37
|
深度估计,接口是一个小巧的 TypeScript API,内置的 `annotate()` 可直接把结果绘制到 canvas 上。
|
|
38
38
|
|
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_2003: (a: number, b: number, c: number, d: number) => void;
|
|
204
|
+
readonly __wasm_bindgen_func_elem_2605: (a: number, b: number, c: number, d: number) => void;
|
|
205
|
+
readonly __wasm_bindgen_func_elem_2003_2: (a: number, b: number, c: number, d: number) => void;
|
|
206
|
+
readonly __wasm_bindgen_func_elem_2629: (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_2629(a, state0.b, arg0, arg1);
|
|
738
738
|
} finally {
|
|
739
739
|
state0.a = a;
|
|
740
740
|
}
|
|
@@ -925,17 +925,17 @@ function __wbg_get_imports() {
|
|
|
925
925
|
},
|
|
926
926
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
927
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,
|
|
928
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2003);
|
|
929
929
|
return addHeapObject(ret);
|
|
930
930
|
},
|
|
931
931
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
932
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,
|
|
933
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2605);
|
|
934
934
|
return addHeapObject(ret);
|
|
935
935
|
},
|
|
936
936
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
937
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,
|
|
938
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2003_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_2003(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_2003(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_2020(arg0, arg1, arg2) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
|
-
function
|
|
1039
|
+
function __wasm_bindgen_func_elem_2605(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_2605(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_2624(arg0, arg1, arg2) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
function
|
|
1053
|
+
function __wasm_bindgen_func_elem_2003_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_2003_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_2020_2(arg0, arg1, arg2) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function
|
|
1068
|
-
wasm.
|
|
1067
|
+
function __wasm_bindgen_func_elem_2629(arg0, arg1, arg2, arg3) {
|
|
1068
|
+
wasm.__wasm_bindgen_func_elem_2629(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_2003: (a: number, b: number, c: number, d: number) => void;
|
|
23
|
+
export const __wasm_bindgen_func_elem_2605: (a: number, b: number, c: number, d: number) => void;
|
|
24
|
+
export const __wasm_bindgen_func_elem_2003_2: (a: number, b: number, c: number, d: number) => void;
|
|
25
|
+
export const __wasm_bindgen_func_elem_2629: (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;
|