@ultralytics/yolo 0.0.53 → 0.0.54

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 CHANGED
@@ -174,6 +174,16 @@ const results = await model.predict(img, { colormap: "spectral", depthViz: "metr
174
174
  await annotate(canvas, img, results, { depthAlpha: 0.6 });
175
175
  ```
176
176
 
177
+ For pose, `annotate()` takes the Ultralytics `plot()` keypoint options: `keypointRadius` (default `5`),
178
+ `keypointThreshold`, `keypointLines`, `keypointColor`, and `skeleton` to connect the keypoints of a custom layout:
179
+
180
+ ```ts
181
+ await annotate(canvas, img, results, { keypointRadius: 4, skeleton: [[0, 1]] });
182
+ ```
183
+
184
+ `annotate()` also takes `lineWidth` and `font` to set the box width and label font, and `labels: false` or
185
+ `keypoints: false` to hide labels or keypoints.
186
+
177
187
  ## ⚙️ Requirements & Notes
178
188
 
179
189
  - **WebGPU** (Chrome/Edge, or Firefox with WebGPU enabled) from a **secure
@@ -211,6 +221,9 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
211
221
  > `32`/`fp32` (default), `16`/`fp16`, and `8`/`int8`; the old flags still work
212
222
  > but emit a deprecation warning.
213
223
 
224
+ FP16 exports made on a GPU have float16 inputs and outputs. `YOLO.load` casts them to float32 at the graph edges,
225
+ so they run like FP16 exports made on a CPU.
226
+
214
227
  - **Runtime assets**: on first load, `ort-web` fetches the ONNX Runtime Web wasm
215
228
  bundle (~25 MB, browser-cached afterward) from `cdn.pyke.io`. If you set a
216
229
  Content-Security-Policy, allow that origin in `script-src`/`connect-src`. To
@@ -220,7 +233,8 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
220
233
  ```
221
234
  The folder must contain the ONNX Runtime Web entry scripts (`ort.webgpu.min.js`
222
235
  and `ort.wasm.min.js` for the CPU fallback) plus the
223
- `ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` binaries.
236
+ `ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` binaries. If your bundler does not serve this package's
237
+ own `ultralytics_inference_web_bg.wasm`, pass its URL as `wasmUrl`.
224
238
  - **Telemetry**: `ort-web` can report the page domain to pyke on first session
225
239
  creation. This package turns that off, so nothing is sent. See the
226
240
  [ort-web docs](https://ort.pyke.io/backends/web) for what it would send.
package/README.zh-CN.md CHANGED
@@ -167,6 +167,16 @@ const results = await model.predict(img, { colormap: "spectral", depthViz: "metr
167
167
  await annotate(canvas, img, results, { depthAlpha: 0.6 });
168
168
  ```
169
169
 
170
+ 对于 pose 任务,`annotate()` 接受 Ultralytics `plot()` 的关键点选项:`keypointRadius`(默认 `5`)、
171
+ `keypointThreshold`、`keypointLines`、`keypointColor`,以及用于连接自定义布局关键点的 `skeleton`:
172
+
173
+ ```ts
174
+ await annotate(canvas, img, results, { keypointRadius: 4, skeleton: [[0, 1]] });
175
+ ```
176
+
177
+ `annotate()` 还接受 `lineWidth` 和 `font` 用于设置框线宽度和标签字体,以及 `labels: false` 或
178
+ `keypoints: false` 用于隐藏标签或关键点。
179
+
170
180
  ## ⚙️ 环境要求与注意事项
171
181
 
172
182
  - **WebGPU**(Chrome/Edge,或启用了 WebGPU 的 Firefox)配合**安全上下文**(`https://` 或
@@ -198,6 +208,9 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
198
208
  > 对于 ONNX,支持的取值为 `32`/`fp32`(默认)、`16`/`fp16` 和 `8`/`int8`;旧标志
199
209
  > 仍可使用,但会触发弃用警告。
200
210
 
211
+ 在 GPU 上导出的 FP16 模型的输入和输出为 float16。`YOLO.load` 会在图的输入输出处将其转换为 float32,
212
+ 因此它们与在 CPU 上导出的 FP16 模型一样可以运行。
213
+
201
214
  - **运行时资源**:首次加载时,`ort-web` 会从 `cdn.pyke.io` 获取 ONNX Runtime Web 的 wasm 包
202
215
  (约 25 MB,之后由浏览器缓存)。如果你设置了 Content-Security-Policy,请在
203
216
  `script-src`/`connect-src` 中放行该源。若想完全避开 CDN,可自行托管运行时并指向它:
@@ -205,7 +218,8 @@ await annotate(canvas, img, results, { depthAlpha: 0.6 });
205
218
  const model = await YOLO.load("/models/yolo26n.onnx", { ortBaseUrl: "/ort/" });
206
219
  ```
207
220
  该目录需包含 ONNX Runtime Web 的入口脚本(`ort.webgpu.min.js`,以及 CPU 回退所需的
208
- `ort.wasm.min.js`)和 `ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` 二进制文件。
221
+ `ort.wasm.min.js`)和 `ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` 二进制文件。如果打包工具没有提供本包自带的
222
+ `ultralytics_inference_web_bg.wasm`,可通过 `wasmUrl` 传入其 URL。
209
223
  - **遥测**:`ort-web` 可以在首次创建会话时向 pyke 上报页面域名。本包已将其关闭,不会发送任何数据。
210
224
  上报内容见 [ort-web 文档](https://ort.pyke.io/backends/web)。
211
225
 
package/dist/index.d.ts CHANGED
@@ -143,6 +143,17 @@ export interface AnnotateOptions {
143
143
  keypoints?: boolean;
144
144
  /** Keypoint confidence threshold for drawing. Default `0.25` (matches Ultralytics). */
145
145
  keypointThreshold?: number;
146
+ /** Keypoint radius in pixels (`kpt_radius`). Default `5`, like Ultralytics. */
147
+ keypointRadius?: number;
148
+ /** Draw the lines between keypoints (`kpt_line`). Default `true`. */
149
+ keypointLines?: boolean;
150
+ /** One CSS color for every keypoint and line (`kpt_color`). Defaults to the palette. */
151
+ keypointColor?: string;
152
+ /**
153
+ * Pairs of keypoint indices to connect. Defaults to the human skeleton for 17-keypoint
154
+ * (COCO-Pose) models and no lines for other layouts, like Ultralytics.
155
+ */
156
+ skeleton?: Array<[number, number]>;
146
157
  /**
147
158
  * Blend opacity for the depth overlay, `0`..`1`. Default `0.6` (matches the native
148
159
  * annotator); `1` shows the raw colorized depth map, `0` shows only the source.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
2
2
  /**
3
- * Browser bindings for Ultralytics YOLO inference on WebGPU.
3
+ * Browser bindings for Ultralytics YOLO inference on WebGPU or CPU.
4
4
  *
5
5
  * Thin TypeScript wrapper around the WebAssembly module compiled from the
6
- * `ultralytics-inference` Rust crate. Inference runs on the GPU through ONNX
7
- * Runtime Web (bridged by `ort-web`); this module hides the wasm init, GPU
8
- * setup, and image encoding behind a small `YOLO` class:
6
+ * `ultralytics-inference` Rust crate. `.onnx` models run through ONNX Runtime Web
7
+ * (bridged by `ort-web`) and `.tflite` models through LiteRT.js; this module hides
8
+ * the wasm init, device setup, and image encoding behind a small `YOLO` class:
9
9
  *
10
10
  * ```ts
11
11
  * import { YOLO } from "@ultralytics/yolo";
@@ -74,7 +74,6 @@ function decodeResults(raw) {
74
74
  return r;
75
75
  }
76
76
  let initialized = false;
77
- /** Initialize the wasm module exactly once. */
78
77
  /**
79
78
  * `ort-web` 0.4.0 reads tensor dims as 64-bit integers, but ONNX Runtime Web returns plain
80
79
  * numbers, which the wasm glue then rejects with "Cannot convert 1 to a BigInt". Accept number
@@ -86,6 +85,7 @@ function allowNumberDims() {
86
85
  set.call(this, Array.isArray(src) ? src.map((v) => BigInt(v)) : src, offset);
87
86
  };
88
87
  }
88
+ /** Initialize the wasm module exactly once. */
89
89
  async function ensureInit(wasmUrl) {
90
90
  if (initialized)
91
91
  return;
@@ -342,11 +342,7 @@ class LiteRtEngine {
342
342
  async runDrawable(data, width, height, p) {
343
343
  const input = this.pipeline.preprocess_rgba(data, width, height);
344
344
  const { outputs, shapes, inferenceMs } = await this.backend.run(input, Array.from(this.pipeline.inputShape));
345
- // Flatten shapes as [rank, dims..., rank, dims...] for the wasm boundary.
346
- const flatShapes = [];
347
- for (const s of shapes)
348
- flatShapes.push(s.length, ...s);
349
- return this.pipeline.postprocess(outputs, new Uint32Array(flatShapes), inferenceMs, p.conf, p.iou, p.classes, p.colormap, p.depthViz);
345
+ return this.pipeline.postprocess(outputs, shapes.map((s) => new Uint32Array(s)), inferenceMs, p.conf, p.iou, p.classes, p.colormap, p.depthViz);
350
346
  }
351
347
  /** Chain `fn` after any in-flight prediction so wasm frame state is never shared. */
352
348
  serialize(fn) {
@@ -558,10 +554,11 @@ export async function annotate(canvas, image, results, options) {
558
554
  const sin = Math.sin(o.angle);
559
555
  const hw = o.w / 2;
560
556
  const hh = o.h / 2;
557
+ // Same corner order as the native `Obb::xyxyxyxy` and Ultralytics `xywhr2xyxyxyxy`.
561
558
  const corners = [
562
- [-hw, -hh],
563
- [hw, -hh],
564
559
  [hw, hh],
560
+ [hw, -hh],
561
+ [-hw, -hh],
565
562
  [-hw, hh],
566
563
  ].map(([dx, dy]) => [o.x + dx * cos - dy * sin, o.y + dx * sin + dy * cos]);
567
564
  ctx.beginPath();
@@ -575,25 +572,35 @@ export async function annotate(canvas, image, results, options) {
575
572
  // Pose keypoints + skeleton, colored with the engine's pose palette (per-limb
576
573
  // and per-keypoint), matching the native/Python renderer.
577
574
  if (showKpts && results.keypoints.length) {
578
- const { skeleton, keypoint_colors, limb_colors } = poseScheme();
579
- const radius = Math.max(2, Math.round(width / 300));
575
+ const scheme = poseScheme();
576
+ const radius = options?.keypointRadius ?? 5;
577
+ const fixed = options?.keypointColor;
580
578
  ctx.lineWidth = Math.max(1, Math.round(lineWidth / 1.5));
581
579
  for (const kp of results.keypoints) {
582
- skeleton.forEach(([a, b], li) => {
583
- const pa = kp.points[a];
584
- const pb = kp.points[b];
585
- if (!pa || !pb || pa[2] < kptThresh || pb[2] < kptThresh)
586
- return;
587
- ctx.strokeStyle = limb_colors[li] ?? kp.color;
588
- ctx.beginPath();
589
- ctx.moveTo(pa[0], pa[1]);
590
- ctx.lineTo(pb[0], pb[1]);
591
- ctx.stroke();
592
- });
580
+ // Like Ultralytics, only the 17-keypoint COCO-Pose layout gets the pose palette and the
581
+ // human skeleton; other layouts take one palette color per keypoint and no lines.
582
+ const coco = kp.points.length === scheme.keypoint_colors.length;
583
+ const skeleton = options?.skeleton ?? (coco ? scheme.skeleton : []);
584
+ const paletteAt = (i) => scheme.palette[i % scheme.palette.length];
585
+ const limbColor = (i) => fixed ?? (coco && !options?.skeleton ? scheme.limb_colors[i] : paletteAt(i));
586
+ const kptColor = (i) => fixed ?? (coco ? scheme.keypoint_colors[i] : paletteAt(i));
587
+ if (options?.keypointLines ?? true) {
588
+ skeleton.forEach(([a, b], li) => {
589
+ const pa = kp.points[a];
590
+ const pb = kp.points[b];
591
+ if (!pa || !pb || pa[2] < kptThresh || pb[2] < kptThresh)
592
+ return;
593
+ ctx.strokeStyle = limbColor(li);
594
+ ctx.beginPath();
595
+ ctx.moveTo(pa[0], pa[1]);
596
+ ctx.lineTo(pb[0], pb[1]);
597
+ ctx.stroke();
598
+ });
599
+ }
593
600
  kp.points.forEach(([x, y, c], ki) => {
594
601
  if (c < kptThresh)
595
602
  return;
596
- ctx.fillStyle = keypoint_colors[ki] ?? kp.color;
603
+ ctx.fillStyle = kptColor(ki);
597
604
  ctx.beginPath();
598
605
  ctx.arc(x, y, radius, 0, Math.PI * 2);
599
606
  ctx.fill();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultralytics/yolo",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "Run Ultralytics YOLO models in the browser on WebGPU (WebAssembly, ONNX Runtime Web via ort-web).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/pkg/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ultralytics-inference-web",
3
3
  "type": "module",
4
4
  "description": "Browser/WebAssembly bindings for ultralytics-inference (WebGPU via ort-web)",
5
- "version": "0.0.53",
5
+ "version": "0.0.54",
6
6
  "license": "AGPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",
@@ -100,17 +100,17 @@ export class YoloPipeline {
100
100
  * Postprocess an external engine's raw outputs into the standard `Results`.
101
101
  *
102
102
  * `outputs` are the model's output tensors (one for most tasks; two for
103
- * segmentation: detection head + mask prototypes). `shapes` encodes each
104
- * output's dims flat as `[rank0, dims0..., rank1, dims1...]`. `inference_ms`
103
+ * segmentation: detection head + mask prototypes), with one entry of dims per
104
+ * output in `shapes`. `inference_ms`
105
105
  * is the time the JS engine reported, used only for the `speed` breakdown.
106
106
  * Consumes the frame stashed by the preceding
107
107
  * [`preprocess_rgba`](Self::preprocess_rgba).
108
108
  *
109
109
  * # Errors
110
- * Returns a JS error if called before `preprocess_rgba`, if `shapes` is
111
- * malformed, or on serialization failure.
110
+ * Returns a JS error if called before `preprocess_rgba`, if `shapes` does not
111
+ * have one entry per output, or on serialization failure.
112
112
  */
113
- postprocess(outputs: Float32Array[], shapes: Uint32Array, inference_ms: number, conf: number, iou: number, classes: Uint32Array | null | undefined, colormap: string, depth_viz: string): any;
113
+ postprocess(outputs: Float32Array[], shapes: Uint32Array[], inference_ms: number, conf: number, iou: number, classes: Uint32Array | null | undefined, colormap: string, depth_viz: string): any;
114
114
  /**
115
115
  * Preprocess raw RGBA pixels (e.g. a webcam `ImageData`) into the NCHW f32
116
116
  * input tensor an Ultralytics LiteRT/TFLite model expects, normalized to
@@ -207,10 +207,10 @@ export interface InitOutput {
207
207
  readonly yolopipeline_rtdetr: (a: number) => number;
208
208
  readonly yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
209
209
  readonly yolopipeline_task: (a: number, b: number) => void;
210
- readonly __wasm_bindgen_func_elem_2005: (a: number, b: number, c: number, d: number) => void;
211
- readonly __wasm_bindgen_func_elem_2005_20: (a: number, b: number, c: number, d: number) => void;
212
- readonly __wasm_bindgen_func_elem_2634: (a: number, b: number, c: number, d: number) => void;
213
- readonly __wasm_bindgen_func_elem_2658: (a: number, b: number, c: number, d: number) => void;
210
+ readonly __wasm_bindgen_func_elem_1159: (a: number, b: number, c: number, d: number) => void;
211
+ readonly __wasm_bindgen_func_elem_1159_20: (a: number, b: number, c: number, d: number) => void;
212
+ readonly __wasm_bindgen_func_elem_1786: (a: number, b: number, c: number, d: number) => void;
213
+ readonly __wasm_bindgen_func_elem_1810: (a: number, b: number, c: number, d: number) => void;
214
214
  readonly __wbindgen_export: (a: number, b: number) => number;
215
215
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
216
216
  readonly __wbindgen_export3: (a: number) => void;
@@ -292,17 +292,17 @@ export class YoloPipeline {
292
292
  * Postprocess an external engine's raw outputs into the standard `Results`.
293
293
  *
294
294
  * `outputs` are the model's output tensors (one for most tasks; two for
295
- * segmentation: detection head + mask prototypes). `shapes` encodes each
296
- * output's dims flat as `[rank0, dims0..., rank1, dims1...]`. `inference_ms`
295
+ * segmentation: detection head + mask prototypes), with one entry of dims per
296
+ * output in `shapes`. `inference_ms`
297
297
  * is the time the JS engine reported, used only for the `speed` breakdown.
298
298
  * Consumes the frame stashed by the preceding
299
299
  * [`preprocess_rgba`](Self::preprocess_rgba).
300
300
  *
301
301
  * # Errors
302
- * Returns a JS error if called before `preprocess_rgba`, if `shapes` is
303
- * malformed, or on serialization failure.
302
+ * Returns a JS error if called before `preprocess_rgba`, if `shapes` does not
303
+ * have one entry per output, or on serialization failure.
304
304
  * @param {Float32Array[]} outputs
305
- * @param {Uint32Array} shapes
305
+ * @param {Uint32Array[]} shapes
306
306
  * @param {number} inference_ms
307
307
  * @param {number} conf
308
308
  * @param {number} iou
@@ -316,7 +316,7 @@ export class YoloPipeline {
316
316
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
317
317
  const ptr0 = passArrayJsValueToWasm0(outputs, wasm.__wbindgen_export);
318
318
  const len0 = WASM_VECTOR_LEN;
319
- const ptr1 = passArray32ToWasm0(shapes, wasm.__wbindgen_export);
319
+ const ptr1 = passArrayJsValueToWasm0(shapes, wasm.__wbindgen_export);
320
320
  const len1 = WASM_VECTOR_LEN;
321
321
  var ptr2 = isLikeNone(classes) ? 0 : passArray32ToWasm0(classes, wasm.__wbindgen_export);
322
322
  var len2 = WASM_VECTOR_LEN;
@@ -693,6 +693,10 @@ function __wbg_get_imports() {
693
693
  const ret = Symbol.iterator;
694
694
  return addHeapObject(ret);
695
695
  },
696
+ __wbg_length_511b1f84719d3462: function(arg0) {
697
+ const ret = getObject(arg0).length;
698
+ return ret;
699
+ },
696
700
  __wbg_length_58572db4c38f3c3e: function(arg0) {
697
701
  const ret = getObject(arg0).length;
698
702
  return ret;
@@ -744,7 +748,7 @@ function __wbg_get_imports() {
744
748
  const a = state0.a;
745
749
  state0.a = 0;
746
750
  try {
747
- return __wasm_bindgen_func_elem_2658(a, state0.b, arg0, arg1);
751
+ return __wasm_bindgen_func_elem_1810(a, state0.b, arg0, arg1);
748
752
  } finally {
749
753
  state0.a = a;
750
754
  }
@@ -833,6 +837,9 @@ function __wbg_get_imports() {
833
837
  const ret = getObject(arg0).performance;
834
838
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
835
839
  },
840
+ __wbg_prototypesetcall_06eb15da165dee8f: function(arg0, arg1, arg2) {
841
+ Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), getObject(arg2));
842
+ },
836
843
  __wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
837
844
  Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), getObject(arg2));
838
845
  },
@@ -934,18 +941,18 @@ function __wbg_get_imports() {
934
941
  return addHeapObject(ret);
935
942
  },
936
943
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
937
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 690, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
938
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2005);
944
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 351, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
945
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1159);
939
946
  return addHeapObject(ret);
940
947
  },
941
948
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
942
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 933, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
943
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2634);
949
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 593, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
950
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1786);
944
951
  return addHeapObject(ret);
945
952
  },
946
953
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
947
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("boolean")], shim_idx: 690, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
948
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2005_20);
954
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("boolean")], shim_idx: 351, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
955
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1159_20);
949
956
  return addHeapObject(ret);
950
957
  },
951
958
  __wbindgen_generic_0000000000000004: function(arg0) {
@@ -1032,14 +1039,14 @@ function __wbg_get_imports() {
1032
1039
  };
1033
1040
  }
1034
1041
 
1035
- function __wasm_bindgen_func_elem_2658(arg0, arg1, arg2, arg3) {
1036
- wasm.__wasm_bindgen_func_elem_2658(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1042
+ function __wasm_bindgen_func_elem_1810(arg0, arg1, arg2, arg3) {
1043
+ wasm.__wasm_bindgen_func_elem_1810(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1037
1044
  }
1038
1045
 
1039
- function __wasm_bindgen_func_elem_2005(arg0, arg1, arg2) {
1046
+ function __wasm_bindgen_func_elem_1159(arg0, arg1, arg2) {
1040
1047
  try {
1041
1048
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1042
- wasm.__wasm_bindgen_func_elem_2005(retptr, arg0, arg1, addHeapObject(arg2));
1049
+ wasm.__wasm_bindgen_func_elem_1159(retptr, arg0, arg1, addHeapObject(arg2));
1043
1050
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1044
1051
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1045
1052
  if (r1) {
@@ -1050,10 +1057,10 @@ function __wasm_bindgen_func_elem_2005(arg0, arg1, arg2) {
1050
1057
  }
1051
1058
  }
1052
1059
 
1053
- function __wasm_bindgen_func_elem_2634(arg0, arg1, arg2) {
1060
+ function __wasm_bindgen_func_elem_1786(arg0, arg1, arg2) {
1054
1061
  try {
1055
1062
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1056
- wasm.__wasm_bindgen_func_elem_2634(retptr, arg0, arg1, addHeapObject(arg2));
1063
+ wasm.__wasm_bindgen_func_elem_1786(retptr, arg0, arg1, addHeapObject(arg2));
1057
1064
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1058
1065
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1059
1066
  if (r1) {
@@ -1064,10 +1071,10 @@ function __wasm_bindgen_func_elem_2634(arg0, arg1, arg2) {
1064
1071
  }
1065
1072
  }
1066
1073
 
1067
- function __wasm_bindgen_func_elem_2005_20(arg0, arg1, arg2) {
1074
+ function __wasm_bindgen_func_elem_1159_20(arg0, arg1, arg2) {
1068
1075
  try {
1069
1076
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1070
- wasm.__wasm_bindgen_func_elem_2005_20(retptr, arg0, arg1, addHeapObject(arg2));
1077
+ wasm.__wasm_bindgen_func_elem_1159_20(retptr, arg0, arg1, addHeapObject(arg2));
1071
1078
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1072
1079
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1073
1080
  if (r1) {
@@ -20,10 +20,10 @@ export const yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d:
20
20
  export const yolopipeline_rtdetr: (a: number) => number;
21
21
  export const yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
22
22
  export const yolopipeline_task: (a: number, b: number) => void;
23
- export const __wasm_bindgen_func_elem_2005: (a: number, b: number, c: number, d: number) => void;
24
- export const __wasm_bindgen_func_elem_2005_20: (a: number, b: number, c: number, d: number) => void;
25
- export const __wasm_bindgen_func_elem_2634: (a: number, b: number, c: number, d: number) => void;
26
- export const __wasm_bindgen_func_elem_2658: (a: number, b: number, c: number, d: number) => void;
23
+ export const __wasm_bindgen_func_elem_1159: (a: number, b: number, c: number, d: number) => void;
24
+ export const __wasm_bindgen_func_elem_1159_20: (a: number, b: number, c: number, d: number) => void;
25
+ export const __wasm_bindgen_func_elem_1786: (a: number, b: number, c: number, d: number) => void;
26
+ export const __wasm_bindgen_func_elem_1810: (a: number, b: number, c: number, d: number) => void;
27
27
  export const __wbindgen_export: (a: number, b: number) => number;
28
28
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
29
29
  export const __wbindgen_export3: (a: number) => void;