@ultralytics/yolo 0.0.26 → 0.0.28

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
@@ -135,17 +135,17 @@ only). A value containing a `/` or a scheme is used as a URL/path as-is.
135
135
 
136
136
  Field names match the Rust/Ultralytics `Results` API 1-1:
137
137
 
138
- | Field | Type | Tasks |
139
- | ------------------ | --------------------------------------------------------- | --------------------- |
140
- | `task` | `string` | all |
141
- | `width` / `height` | `number` | all |
142
- | `boxes` | `{ x1, y1, x2, y2, conf, cls, name, color }[]` | detect, segment, pose |
143
- | `obb` | `{ x, y, w, h, angle, conf, cls, name, color }[]` | obb |
144
- | `keypoints` | `{ points: [x, y, conf][], color }[]` | pose |
145
- | `probs` | `{ top1, top5, top1conf, top5conf, name, color } \| null` | classify |
146
- | `masks` | `Uint8Array` (RGBA overlay, `width*height*4`) | segment, semantic |
147
- | `semantic_mask` | `Uint16Array` (class id per pixel, `width*height`) | semantic |
148
- | `speed` | `{ preprocess, inference, postprocess }` ms | all |
138
+ | Field | Type | Tasks |
139
+ | ------------------ | -------------------------------------------------------------------- | --------------------- |
140
+ | `task` | `string` | all |
141
+ | `width` / `height` | `number` | all |
142
+ | `boxes` | `{ x1, y1, x2, y2, conf, cls, name, color }[]` | detect, segment, pose |
143
+ | `obb` | `{ x, y, w, h, angle, conf, cls, name, color }[]` | obb |
144
+ | `keypoints` | `{ points: [x, y, conf][], color }[]` | pose |
145
+ | `probs` | `{ top1, top5, top1conf, top5conf, name, top5names, color } \| null` | classify |
146
+ | `masks` | `Uint8Array` (RGBA overlay, `width*height*4`) | segment, semantic |
147
+ | `semantic_mask` | `Uint16Array` (class id per pixel, `width*height`) | semantic |
148
+ | `speed` | `{ preprocess, inference, postprocess }` ms | all |
149
149
 
150
150
  `model.names` is the class id to name map (like `model.names` in Python). Every
151
151
  detection carries its Ultralytics palette `color`, and `annotate()` draws the
package/dist/index.d.ts CHANGED
@@ -60,6 +60,14 @@ export interface Results {
60
60
  * class-filtered pixels. The `masks` overlay is its renderable form.
61
61
  */
62
62
  semantic_mask?: Uint16Array;
63
+ /**
64
+ * Depth map as an opaque colorized RGBA image (`width*height*4`), using the
65
+ * colormap from {@link PredictOptions.colormap}; empty for other tasks.
66
+ * Drawable straight onto a canvas via `ImageData`.
67
+ */
68
+ depth: Uint8Array;
69
+ /** Depth range `[min, max]` in meters over valid pixels, for depth models. */
70
+ depth_range?: [number, number];
63
71
  speed: Speed;
64
72
  }
65
73
  /** Options for {@link YOLO.load}. */
@@ -105,6 +113,17 @@ export interface PredictOptions {
105
113
  * detect/segment/pose/obb, and for semantic marks other pixels as background.
106
114
  */
107
115
  classes?: number[];
116
+ /**
117
+ * Depth colormap for the `depth` overlay: `"inferno"` (default), `"jet"`,
118
+ * `"spectral"` (`Spectral_r`, DepthAnything-style), or `"gray"` (raw grayscale).
119
+ * Ignored by every other task.
120
+ */
121
+ colormap?: "inferno" | "jet" | "spectral" | "gray";
122
+ /**
123
+ * Depth normalization: `"metric"` (default, min/max) or `"disparity"` (inverse depth +
124
+ * percentile clip, the DepthAnything look). Ignored by every other task.
125
+ */
126
+ depthViz?: "metric" | "disparity";
108
127
  }
109
128
  /** Options for {@link annotate}. */
110
129
  export interface AnnotateOptions {
package/dist/index.js CHANGED
@@ -186,7 +186,12 @@ function ensureLiteRtRuntime(litert, wasmUrl) {
186
186
  return litertInit;
187
187
  }
188
188
  litertInitUrl = wasmUrl;
189
- litertInit = litert.loadLiteRt(wasmUrl).catch((e) => {
189
+ // Enable WASM multithreading when the page is cross-origin isolated (COOP/COEP
190
+ // set, so SharedArrayBuffer is available); otherwise LiteRT.js runs single-
191
+ // threaded. SIMD is detected by LiteRT itself. Isolation is a page-global
192
+ // property, so this needs no per-load option.
193
+ const threads = typeof crossOriginIsolated !== "undefined" && crossOriginIsolated;
194
+ litertInit = litert.loadLiteRt(wasmUrl, { threads }).catch((e) => {
190
195
  litertInit = null; // let a later load retry if the first init failed
191
196
  litertInitUrl = null;
192
197
  throw e;
@@ -264,11 +269,11 @@ class OrtEngine {
264
269
  get names() {
265
270
  return this.model.names;
266
271
  }
267
- predictDrawable(data, width, height, conf, iou, classes) {
268
- return this.model.predict_rgba(data, width, height, conf, iou, classes);
272
+ predictDrawable(data, width, height, conf, iou, classes, colormap, depthViz) {
273
+ return this.model.predict_rgba(data, width, height, conf, iou, classes, colormap, depthViz);
269
274
  }
270
- predictEncoded(bytes, conf, iou, classes) {
271
- return this.model.predict(bytes, conf, iou, classes);
275
+ predictEncoded(bytes, conf, iou, classes, colormap, depthViz) {
276
+ return this.model.predict(bytes, conf, iou, classes, colormap, depthViz);
272
277
  }
273
278
  free() {
274
279
  this.model.free();
@@ -295,30 +300,30 @@ class LiteRtEngine {
295
300
  get names() {
296
301
  return this.pipeline.names;
297
302
  }
298
- predictDrawable(data, width, height, conf, iou, classes) {
299
- return this.serialize(() => this.runDrawable(data, width, height, conf, iou, classes));
303
+ predictDrawable(data, width, height, conf, iou, classes, colormap, depthViz) {
304
+ return this.serialize(() => this.runDrawable(data, width, height, conf, iou, classes, colormap, depthViz));
300
305
  }
301
306
  /** LiteRT takes raw pixels, so decode encoded inputs to RGBA in JS first. */
302
- predictEncoded(bytes, conf, iou, classes) {
307
+ predictEncoded(bytes, conf, iou, classes, colormap, depthViz) {
303
308
  return this.serialize(async () => {
304
309
  const bitmap = await createImageBitmap(new Blob([bytes]));
305
310
  try {
306
311
  const { data, width, height } = toImageData(bitmap);
307
- return await this.runDrawable(data, width, height, conf, iou, classes);
312
+ return await this.runDrawable(data, width, height, conf, iou, classes, colormap, depthViz);
308
313
  }
309
314
  finally {
310
315
  bitmap.close();
311
316
  }
312
317
  });
313
318
  }
314
- async runDrawable(data, width, height, conf, iou, classes) {
319
+ async runDrawable(data, width, height, conf, iou, classes, colormap, depthViz) {
315
320
  const input = this.pipeline.preprocess_rgba(data, width, height);
316
321
  const { outputs, shapes, inferenceMs } = await this.backend.run(input, Array.from(this.pipeline.inputShape));
317
322
  // Flatten shapes as [rank, dims..., rank, dims...] for the wasm boundary.
318
323
  const flatShapes = [];
319
324
  for (const s of shapes)
320
325
  flatShapes.push(s.length, ...s);
321
- return this.pipeline.postprocess(outputs, new Uint32Array(flatShapes), inferenceMs, conf, iou, classes);
326
+ return this.pipeline.postprocess(outputs, new Uint32Array(flatShapes), inferenceMs, conf, iou, classes, colormap, depthViz);
322
327
  }
323
328
  /** Chain `fn` after any in-flight prediction so wasm frame state is never shared. */
324
329
  serialize(fn) {
@@ -417,12 +422,14 @@ export class YOLO {
417
422
  const conf = options?.conf ?? DEFAULT_CONF;
418
423
  const iou = options?.iou ?? DEFAULT_IOU;
419
424
  const classes = options?.classes ? new Uint32Array(options.classes) : undefined;
425
+ const colormap = options?.colormap ?? "inferno";
426
+ const depthViz = options?.depthViz ?? "metric";
420
427
  if (isDrawable(image)) {
421
428
  const { data, width, height } = toImageData(image);
422
- return decodeResults(await this.engine.predictDrawable(data, width, height, conf, iou, classes));
429
+ return decodeResults(await this.engine.predictDrawable(data, width, height, conf, iou, classes, colormap, depthViz));
423
430
  }
424
431
  const bytes = await toEncodedBytes(image);
425
- return decodeResults(await this.engine.predictEncoded(bytes, conf, iou, classes));
432
+ return decodeResults(await this.engine.predictEncoded(bytes, conf, iou, classes, colormap, depthViz));
426
433
  }
427
434
  /** Release the underlying wasm model/engine. Call when you are done with it. */
428
435
  free() {
@@ -471,6 +478,14 @@ export async function annotate(canvas, image, results, options) {
471
478
  get2d(tmp).putImageData(new ImageData(new Uint8ClampedArray(overlay), width, height), 0, 0);
472
479
  ctx.drawImage(tmp, 0, 0, width, height);
473
480
  }
481
+ // Depth: the engine returns an opaque colorized depth image; draw it over the
482
+ // frame so the canvas shows the depth map.
483
+ const depth = results.depth;
484
+ if (depth && depth.length === width * height * 4) {
485
+ const tmp = makeCanvas(width, height);
486
+ get2d(tmp).putImageData(new ImageData(new Uint8ClampedArray(depth), width, height), 0, 0);
487
+ ctx.drawImage(tmp, 0, 0, width, height);
488
+ }
474
489
  const lineWidth = options?.lineWidth ?? Math.max(2, Math.round(width / 320));
475
490
  const fontSize = Math.max(12, Math.round(width / 40));
476
491
  const font = options?.font ?? `${fontSize}px sans-serif`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultralytics/yolo",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
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.26",
5
+ "version": "0.0.28",
6
6
  "license": "AGPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",
@@ -41,7 +41,7 @@ export class YoloModel {
41
41
  * # Errors
42
42
  * Returns a JS error if the image cannot be decoded or inference fails.
43
43
  */
44
- predict(image: Uint8Array, conf: number, iou: number, classes?: Uint32Array | null): Promise<any>;
44
+ predict(image: Uint8Array, conf: number, iou: number, classes: Uint32Array | null | undefined, colormap: string, depth_viz: string): Promise<any>;
45
45
  /**
46
46
  * Run inference on raw `RGBA` pixels (e.g. a canvas/webcam `ImageData`).
47
47
  *
@@ -51,7 +51,7 @@ export class YoloModel {
51
51
  * # Errors
52
52
  * Returns a JS error if the buffer size is wrong or inference fails.
53
53
  */
54
- predict_rgba(rgba: Uint8Array, width: number, height: number, conf: number, iou: number, classes?: Uint32Array | null): Promise<any>;
54
+ predict_rgba(rgba: Uint8Array, width: number, height: number, conf: number, iou: number, classes: Uint32Array | null | undefined, colormap: string, depth_viz: string): Promise<any>;
55
55
  /**
56
56
  * The active device: `"webgpu"` or `"cpu"` (the fallback when WebGPU is
57
57
  * unavailable). Mirrors the native `Device` display.
@@ -66,7 +66,7 @@ export class YoloModel {
66
66
  readonly names: any;
67
67
  /**
68
68
  * The model's task (`"detect"`, `"segment"`, `"pose"`, `"classify"`,
69
- * `"obb"`, or `"semantic"`).
69
+ * `"obb"`, `"semantic"`, or `"depth"`).
70
70
  */
71
71
  readonly task: string;
72
72
  }
@@ -110,7 +110,7 @@ export class YoloPipeline {
110
110
  * Returns a JS error if called before `preprocess_rgba`, if `shapes` is
111
111
  * malformed, or on serialization failure.
112
112
  */
113
- postprocess(outputs: Float32Array[], shapes: Uint32Array, inference_ms: number, conf: number, iou: number, classes?: Uint32Array | null): 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
@@ -173,21 +173,21 @@ export interface InitOutput {
173
173
  readonly yolomodel_device: (a: number, b: number) => void;
174
174
  readonly yolomodel_load_bytes: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
175
175
  readonly yolomodel_names: (a: number, b: number) => void;
176
- readonly yolomodel_predict: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
177
- readonly yolomodel_predict_rgba: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
176
+ readonly yolomodel_predict: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
177
+ readonly yolomodel_predict_rgba: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
178
178
  readonly yolomodel_task: (a: number, b: number) => void;
179
179
  readonly yolopipeline_end2end: (a: number) => number;
180
180
  readonly yolopipeline_inputShape: (a: number, b: number) => void;
181
181
  readonly yolopipeline_names: (a: number, b: number) => void;
182
182
  readonly yolopipeline_new: (a: number, b: number, c: number) => void;
183
- readonly yolopipeline_postprocess: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
183
+ readonly yolopipeline_postprocess: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
184
184
  readonly yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
185
185
  readonly yolopipeline_task: (a: number, b: number) => void;
186
186
  readonly start: () => void;
187
- readonly __wasm_bindgen_func_elem_1968: (a: number, b: number, c: number, d: number) => void;
188
- readonly __wasm_bindgen_func_elem_2573: (a: number, b: number, c: number, d: number) => void;
189
- readonly __wasm_bindgen_func_elem_1968_2: (a: number, b: number, c: number, d: number) => void;
190
- readonly __wasm_bindgen_func_elem_2583: (a: number, b: number, c: number, d: number) => void;
187
+ readonly __wasm_bindgen_func_elem_1945: (a: number, b: number, c: number, d: number) => void;
188
+ readonly __wasm_bindgen_func_elem_2542: (a: number, b: number, c: number, d: number) => void;
189
+ readonly __wasm_bindgen_func_elem_1945_2: (a: number, b: number, c: number, d: number) => void;
190
+ readonly __wasm_bindgen_func_elem_2566: (a: number, b: number, c: number, d: number) => void;
191
191
  readonly __wbindgen_export: (a: number, b: number) => number;
192
192
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
193
193
  readonly __wbindgen_export3: (a: number) => void;
@@ -114,15 +114,21 @@ export class YoloModel {
114
114
  * @param {Uint8Array} image
115
115
  * @param {number} conf
116
116
  * @param {number} iou
117
- * @param {Uint32Array | null} [classes]
117
+ * @param {Uint32Array | null | undefined} classes
118
+ * @param {string} colormap
119
+ * @param {string} depth_viz
118
120
  * @returns {Promise<any>}
119
121
  */
120
- predict(image, conf, iou, classes) {
122
+ predict(image, conf, iou, classes, colormap, depth_viz) {
121
123
  const ptr0 = passArray8ToWasm0(image, wasm.__wbindgen_export);
122
124
  const len0 = WASM_VECTOR_LEN;
123
125
  var ptr1 = isLikeNone(classes) ? 0 : passArray32ToWasm0(classes, wasm.__wbindgen_export);
124
126
  var len1 = WASM_VECTOR_LEN;
125
- const ret = wasm.yolomodel_predict(this.__wbg_ptr, ptr0, len0, conf, iou, ptr1, len1);
127
+ const ptr2 = passStringToWasm0(colormap, wasm.__wbindgen_export, wasm.__wbindgen_export2);
128
+ const len2 = WASM_VECTOR_LEN;
129
+ const ptr3 = passStringToWasm0(depth_viz, wasm.__wbindgen_export, wasm.__wbindgen_export2);
130
+ const len3 = WASM_VECTOR_LEN;
131
+ const ret = wasm.yolomodel_predict(this.__wbg_ptr, ptr0, len0, conf, iou, ptr1, len1, ptr2, len2, ptr3, len3);
126
132
  return takeObject(ret);
127
133
  }
128
134
  /**
@@ -138,20 +144,26 @@ export class YoloModel {
138
144
  * @param {number} height
139
145
  * @param {number} conf
140
146
  * @param {number} iou
141
- * @param {Uint32Array | null} [classes]
147
+ * @param {Uint32Array | null | undefined} classes
148
+ * @param {string} colormap
149
+ * @param {string} depth_viz
142
150
  * @returns {Promise<any>}
143
151
  */
144
- predict_rgba(rgba, width, height, conf, iou, classes) {
152
+ predict_rgba(rgba, width, height, conf, iou, classes, colormap, depth_viz) {
145
153
  const ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_export);
146
154
  const len0 = WASM_VECTOR_LEN;
147
155
  var ptr1 = isLikeNone(classes) ? 0 : passArray32ToWasm0(classes, wasm.__wbindgen_export);
148
156
  var len1 = WASM_VECTOR_LEN;
149
- const ret = wasm.yolomodel_predict_rgba(this.__wbg_ptr, ptr0, len0, width, height, conf, iou, ptr1, len1);
157
+ const ptr2 = passStringToWasm0(colormap, wasm.__wbindgen_export, wasm.__wbindgen_export2);
158
+ const len2 = WASM_VECTOR_LEN;
159
+ const ptr3 = passStringToWasm0(depth_viz, wasm.__wbindgen_export, wasm.__wbindgen_export2);
160
+ const len3 = WASM_VECTOR_LEN;
161
+ const ret = wasm.yolomodel_predict_rgba(this.__wbg_ptr, ptr0, len0, width, height, conf, iou, ptr1, len1, ptr2, len2, ptr3, len3);
150
162
  return takeObject(ret);
151
163
  }
152
164
  /**
153
165
  * The model's task (`"detect"`, `"segment"`, `"pose"`, `"classify"`,
154
- * `"obb"`, or `"semantic"`).
166
+ * `"obb"`, `"semantic"`, or `"depth"`).
155
167
  * @returns {string}
156
168
  */
157
169
  get task() {
@@ -294,10 +306,12 @@ export class YoloPipeline {
294
306
  * @param {number} inference_ms
295
307
  * @param {number} conf
296
308
  * @param {number} iou
297
- * @param {Uint32Array | null} [classes]
309
+ * @param {Uint32Array | null | undefined} classes
310
+ * @param {string} colormap
311
+ * @param {string} depth_viz
298
312
  * @returns {any}
299
313
  */
300
- postprocess(outputs, shapes, inference_ms, conf, iou, classes) {
314
+ postprocess(outputs, shapes, inference_ms, conf, iou, classes, colormap, depth_viz) {
301
315
  try {
302
316
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
303
317
  const ptr0 = passArrayJsValueToWasm0(outputs, wasm.__wbindgen_export);
@@ -306,7 +320,11 @@ export class YoloPipeline {
306
320
  const len1 = WASM_VECTOR_LEN;
307
321
  var ptr2 = isLikeNone(classes) ? 0 : passArray32ToWasm0(classes, wasm.__wbindgen_export);
308
322
  var len2 = WASM_VECTOR_LEN;
309
- wasm.yolopipeline_postprocess(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, inference_ms, conf, iou, ptr2, len2);
323
+ const ptr3 = passStringToWasm0(colormap, wasm.__wbindgen_export, wasm.__wbindgen_export2);
324
+ const len3 = WASM_VECTOR_LEN;
325
+ const ptr4 = passStringToWasm0(depth_viz, wasm.__wbindgen_export, wasm.__wbindgen_export2);
326
+ const len4 = WASM_VECTOR_LEN;
327
+ wasm.yolopipeline_postprocess(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, inference_ms, conf, iou, ptr2, len2, ptr3, len3, ptr4, len4);
310
328
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
311
329
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
312
330
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -407,7 +425,7 @@ export function start() {
407
425
  function __wbg_get_imports() {
408
426
  const import0 = {
409
427
  __proto__: null,
410
- __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
428
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
411
429
  const ret = Error(getStringFromWasm0(arg0, arg1));
412
430
  return addHeapObject(ret);
413
431
  },
@@ -418,64 +436,64 @@ function __wbg_get_imports() {
418
436
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
419
437
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
420
438
  },
421
- __wbg___wbindgen_bigint_get_as_i64_d9e915702856f831: function(arg0, arg1) {
439
+ __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
422
440
  const v = getObject(arg1);
423
441
  const ret = typeof(v) === 'bigint' ? v : undefined;
424
442
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
425
443
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
426
444
  },
427
- __wbg___wbindgen_boolean_get_edaed31a367ce1bd: function(arg0) {
445
+ __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
428
446
  const v = getObject(arg0);
429
447
  const ret = typeof(v) === 'boolean' ? v : undefined;
430
448
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
431
449
  },
432
- __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
450
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
433
451
  const ret = debugString(getObject(arg1));
434
452
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
435
453
  const len1 = WASM_VECTOR_LEN;
436
454
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
437
455
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
438
456
  },
439
- __wbg___wbindgen_in_4990f46af709e33c: function(arg0, arg1) {
457
+ __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
440
458
  const ret = getObject(arg0) in getObject(arg1);
441
459
  return ret;
442
460
  },
443
- __wbg___wbindgen_is_bigint_90b5ccfe67c78460: function(arg0) {
461
+ __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
444
462
  const ret = typeof(getObject(arg0)) === 'bigint';
445
463
  return ret;
446
464
  },
447
- __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
465
+ __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
448
466
  const ret = typeof(getObject(arg0)) === 'function';
449
467
  return ret;
450
468
  },
451
- __wbg___wbindgen_is_object_0beba4a1980d3eea: function(arg0) {
469
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
452
470
  const val = getObject(arg0);
453
471
  const ret = typeof(val) === 'object' && val !== null;
454
472
  return ret;
455
473
  },
456
- __wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
474
+ __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
457
475
  const ret = typeof(getObject(arg0)) === 'string';
458
476
  return ret;
459
477
  },
460
- __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
478
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
461
479
  const ret = getObject(arg0) === undefined;
462
480
  return ret;
463
481
  },
464
- __wbg___wbindgen_jsval_eq_4e8c38722cb8ff51: function(arg0, arg1) {
482
+ __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
465
483
  const ret = getObject(arg0) === getObject(arg1);
466
484
  return ret;
467
485
  },
468
- __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582: function(arg0, arg1) {
486
+ __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
469
487
  const ret = getObject(arg0) == getObject(arg1);
470
488
  return ret;
471
489
  },
472
- __wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
490
+ __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
473
491
  const obj = getObject(arg1);
474
492
  const ret = typeof(obj) === 'number' ? obj : undefined;
475
493
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
476
494
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
477
495
  },
478
- __wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
496
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
479
497
  const obj = getObject(arg1);
480
498
  const ret = typeof(obj) === 'string' ? obj : undefined;
481
499
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -483,30 +501,30 @@ function __wbg_get_imports() {
483
501
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
484
502
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
485
503
  },
486
- __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
504
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
487
505
  throw new Error(getStringFromWasm0(arg0, arg1));
488
506
  },
489
- __wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
507
+ __wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
490
508
  getObject(arg0)._wbg_cb_unref();
491
509
  },
492
- __wbg_buffer_9e4d98d0766fb908: function(arg0) {
510
+ __wbg_buffer_54b87055582c8a81: function(arg0) {
493
511
  const ret = getObject(arg0).buffer;
494
512
  return addHeapObject(ret);
495
513
  },
496
- __wbg_byteLength_564c2b9b251b8b6c: function(arg0) {
514
+ __wbg_byteLength_41862ca4020b9c43: function(arg0) {
497
515
  const ret = getObject(arg0).byteLength;
498
516
  return ret;
499
517
  },
500
- __wbg_byteOffset_10f01f7956bb8fe3: function(arg0) {
518
+ __wbg_byteOffset_d42e18c4441f628b: function(arg0) {
501
519
  const ret = getObject(arg0).byteOffset;
502
520
  return ret;
503
521
  },
504
- __wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
505
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
522
+ __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
523
+ const ret = getObject(arg0).call(getObject(arg1));
506
524
  return addHeapObject(ret);
507
525
  }, arguments); },
508
- __wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
509
- const ret = getObject(arg0).call(getObject(arg1));
526
+ __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
527
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
510
528
  return addHeapObject(ret);
511
529
  }, arguments); },
512
530
  __wbg_create_604d3dd8b0220101: function() { return handleError(function (arg0, arg1, arg2) {
@@ -528,11 +546,11 @@ function __wbg_get_imports() {
528
546
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
529
547
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
530
548
  },
531
- __wbg_done_b62d4a7d2286852a: function(arg0) {
549
+ __wbg_done_89b2b13e91a60321: function(arg0) {
532
550
  const ret = getObject(arg0).done;
533
551
  return ret;
534
552
  },
535
- __wbg_entries_c261c3fa1f281256: function(arg0) {
553
+ __wbg_entries_015dc610cd81ede0: function(arg0) {
536
554
  const ret = Object.entries(getObject(arg0));
537
555
  return addHeapObject(ret);
538
556
  },
@@ -547,7 +565,7 @@ function __wbg_get_imports() {
547
565
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
548
566
  }
549
567
  },
550
- __wbg_from_50138b2ca136f50c: function(arg0) {
568
+ __wbg_from_13e323c65fc8f464: function(arg0) {
551
569
  const ret = Array.from(getObject(arg0));
552
570
  return addHeapObject(ret);
553
571
  },
@@ -555,19 +573,19 @@ function __wbg_get_imports() {
555
573
  const ret = getObject(arg0).getData();
556
574
  return addHeapObject(ret);
557
575
  }, arguments); },
558
- __wbg_get_197a3fe98f169e38: function(arg0, arg1) {
576
+ __wbg_get_507a50627bffa49b: function(arg0, arg1) {
559
577
  const ret = getObject(arg0)[arg1 >>> 0];
560
578
  return addHeapObject(ret);
561
579
  },
562
- __wbg_get_9a29be2cb383ed9a: function() { return handleError(function (arg0, arg1) {
580
+ __wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
563
581
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
564
582
  return addHeapObject(ret);
565
583
  }, arguments); },
566
- __wbg_get_dddb90ff5d27a080: function() { return handleError(function (arg0, arg1) {
584
+ __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
567
585
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
568
586
  return addHeapObject(ret);
569
587
  }, arguments); },
570
- __wbg_get_unchecked_54a4374c38e08460: function(arg0, arg1) {
588
+ __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
571
589
  const ret = getObject(arg0)[arg1 >>> 0];
572
590
  return addHeapObject(ret);
573
591
  },
@@ -593,7 +611,7 @@ function __wbg_get_imports() {
593
611
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
594
612
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
595
613
  },
596
- __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
614
+ __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
597
615
  let result;
598
616
  try {
599
617
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -603,7 +621,7 @@ function __wbg_get_imports() {
603
621
  const ret = result;
604
622
  return ret;
605
623
  },
606
- __wbg_instanceof_Map_afa18d5840c04c15: function(arg0) {
624
+ __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
607
625
  let result;
608
626
  try {
609
627
  result = getObject(arg0) instanceof Map;
@@ -613,7 +631,7 @@ function __wbg_get_imports() {
613
631
  const ret = result;
614
632
  return ret;
615
633
  },
616
- __wbg_instanceof_Uint8Array_f080092dc70f5d58: function(arg0) {
634
+ __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
617
635
  let result;
618
636
  try {
619
637
  result = getObject(arg0) instanceof Uint8Array;
@@ -623,7 +641,7 @@ function __wbg_get_imports() {
623
641
  const ret = result;
624
642
  return ret;
625
643
  },
626
- __wbg_instanceof_Window_0d356b88a2f77c42: function(arg0) {
644
+ __wbg_instanceof_Window_05ba1ee4f6781663: function(arg0) {
627
645
  let result;
628
646
  try {
629
647
  result = getObject(arg0) instanceof Window;
@@ -633,27 +651,27 @@ function __wbg_get_imports() {
633
651
  const ret = result;
634
652
  return ret;
635
653
  },
636
- __wbg_isArray_145a34fd0a38d37b: function(arg0) {
654
+ __wbg_isArray_0677c962b281d01a: function(arg0) {
637
655
  const ret = Array.isArray(getObject(arg0));
638
656
  return ret;
639
657
  },
640
- __wbg_isSafeInteger_a3389a198582f5f6: function(arg0) {
658
+ __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
641
659
  const ret = Number.isSafeInteger(getObject(arg0));
642
660
  return ret;
643
661
  },
644
- __wbg_iterator_cc47ba25a2be735a: function() {
662
+ __wbg_iterator_6f722e4a93058b71: function() {
645
663
  const ret = Symbol.iterator;
646
664
  return addHeapObject(ret);
647
665
  },
648
- __wbg_length_589238bdcf171f0e: function(arg0) {
666
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
649
667
  const ret = getObject(arg0).length;
650
668
  return ret;
651
669
  },
652
- __wbg_length_c6054974c0a6cdb9: function(arg0) {
670
+ __wbg_length_370319915dc99107: function(arg0) {
653
671
  const ret = getObject(arg0).length;
654
672
  return ret;
655
673
  },
656
- __wbg_length_e6bdba0734e5c7f5: function(arg0) {
674
+ __wbg_length_98f10d1e2f4ea968: function(arg0) {
657
675
  const ret = getObject(arg0).length;
658
676
  return ret;
659
677
  },
@@ -665,38 +683,38 @@ function __wbg_get_imports() {
665
683
  const ret = new Error();
666
684
  return addHeapObject(ret);
667
685
  },
668
- __wbg_new_2e117a478906f062: function() {
669
- const ret = new Object();
686
+ __wbg_new_32b398fb48b6d94a: function() {
687
+ const ret = new Array();
670
688
  return addHeapObject(ret);
671
689
  },
672
- __wbg_new_3444eb7412549f0b: function() {
690
+ __wbg_new_7796ffc7ed656783: function() {
673
691
  const ret = new Map();
674
692
  return addHeapObject(ret);
675
693
  },
676
- __wbg_new_36e147a8ced3c6e0: function() {
677
- const ret = new Array();
694
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
695
+ const ret = new Uint8Array(getObject(arg0));
678
696
  return addHeapObject(ret);
679
697
  },
680
- __wbg_new_81880fb5002cb255: function(arg0) {
681
- const ret = new Uint8Array(getObject(arg0));
698
+ __wbg_new_da52cf8fe3429cb2: function() {
699
+ const ret = new Object();
682
700
  return addHeapObject(ret);
683
701
  },
684
702
  __wbg_new_from_buffer_raw_4a1de2fd5040de11: function() { return handleError(function (arg0, arg1, arg2) {
685
703
  const ret = new ort.Tensor(__wbindgen_enum_DataType[arg0], takeObject(arg1), takeObject(arg2));
686
704
  return addHeapObject(ret);
687
705
  }, arguments); },
688
- __wbg_new_from_slice_6696ab0c133d3f19: function(arg0, arg1) {
706
+ __wbg_new_from_slice_ddf8b82c4d6af38e: function(arg0, arg1) {
689
707
  const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
690
708
  return addHeapObject(ret);
691
709
  },
692
- __wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
710
+ __wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
693
711
  try {
694
712
  var state0 = {a: arg0, b: arg1};
695
713
  var cb0 = (arg0, arg1) => {
696
714
  const a = state0.a;
697
715
  state0.a = 0;
698
716
  try {
699
- return __wasm_bindgen_func_elem_2583(a, state0.b, arg0, arg1);
717
+ return __wasm_bindgen_func_elem_2566(a, state0.b, arg0, arg1);
700
718
  } finally {
701
719
  state0.a = a;
702
720
  }
@@ -707,59 +725,59 @@ function __wbg_get_imports() {
707
725
  state0.a = 0;
708
726
  }
709
727
  },
710
- __wbg_new_with_byte_offset_and_length_f2b65504a914f37a: function(arg0, arg1, arg2) {
728
+ __wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
711
729
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
712
730
  return addHeapObject(ret);
713
731
  },
714
- __wbg_new_with_length_05efc4acc152457e: function(arg0) {
715
- const ret = new Int16Array(arg0 >>> 0);
732
+ __wbg_new_with_length_112583d83d0cb73c: function(arg0) {
733
+ const ret = new Float64Array(arg0 >>> 0);
716
734
  return addHeapObject(ret);
717
735
  },
718
- __wbg_new_with_length_0ce56ac4a04c4839: function(arg0) {
736
+ __wbg_new_with_length_3709f79f83165acf: function(arg0) {
719
737
  const ret = new BigUint64Array(arg0 >>> 0);
720
738
  return addHeapObject(ret);
721
739
  },
722
- __wbg_new_with_length_13d615bf4acf5111: function(arg0) {
723
- const ret = new BigInt64Array(arg0 >>> 0);
740
+ __wbg_new_with_length_664ae1da061c56fa: function(arg0) {
741
+ const ret = new Int32Array(arg0 >>> 0);
724
742
  return addHeapObject(ret);
725
743
  },
726
- __wbg_new_with_length_3f188e379a8c6a4d: function(arg0) {
727
- const ret = new Float64Array(arg0 >>> 0);
744
+ __wbg_new_with_length_82964559f36e4bc6: function(arg0) {
745
+ const ret = new Int8Array(arg0 >>> 0);
728
746
  return addHeapObject(ret);
729
747
  },
730
- __wbg_new_with_length_66ae39fdd9da8c1f: function(arg0) {
748
+ __wbg_new_with_length_82f839073dfdaa99: function(arg0) {
731
749
  const ret = new Uint16Array(arg0 >>> 0);
732
750
  return addHeapObject(ret);
733
751
  },
734
- __wbg_new_with_length_711111a7d776e50c: function(arg0) {
735
- const ret = new Float32Array(arg0 >>> 0);
752
+ __wbg_new_with_length_a319d383bd7aa5a8: function(arg0) {
753
+ const ret = new Int16Array(arg0 >>> 0);
736
754
  return addHeapObject(ret);
737
755
  },
738
- __wbg_new_with_length_793583df958b3ae2: function(arg0) {
739
- const ret = new Int32Array(arg0 >>> 0);
756
+ __wbg_new_with_length_a708ad50ef765359: function(arg0) {
757
+ const ret = new BigInt64Array(arg0 >>> 0);
740
758
  return addHeapObject(ret);
741
759
  },
742
- __wbg_new_with_length_9b650f44b5c44a4e: function(arg0) {
743
- const ret = new Uint8Array(arg0 >>> 0);
760
+ __wbg_new_with_length_e1d8c8061ed4e317: function(arg0) {
761
+ const ret = new Float32Array(arg0 >>> 0);
744
762
  return addHeapObject(ret);
745
763
  },
746
- __wbg_new_with_length_d0622e1df06e71a1: function(arg0) {
747
- const ret = new Int8Array(arg0 >>> 0);
764
+ __wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
765
+ const ret = new Uint8Array(arg0 >>> 0);
748
766
  return addHeapObject(ret);
749
767
  },
750
- __wbg_new_with_length_ecf42de9ee25651c: function(arg0) {
768
+ __wbg_new_with_length_f048f86e32f1515e: function(arg0) {
751
769
  const ret = new Uint32Array(arg0 >>> 0);
752
770
  return addHeapObject(ret);
753
771
  },
754
- __wbg_next_0c4066e251d2eff9: function() { return handleError(function (arg0) {
755
- const ret = getObject(arg0).next();
756
- return addHeapObject(ret);
757
- }, arguments); },
758
- __wbg_next_402fa10b59ab20c3: function(arg0) {
772
+ __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
759
773
  const ret = getObject(arg0).next;
760
774
  return addHeapObject(ret);
761
775
  },
762
- __wbg_now_0f628e0e435c541b: function(arg0) {
776
+ __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
777
+ const ret = getObject(arg0).next();
778
+ return addHeapObject(ret);
779
+ }, arguments); },
780
+ __wbg_now_390768da5ee9e776: function(arg0) {
763
781
  const ret = getObject(arg0).now();
764
782
  return ret;
765
783
  },
@@ -777,32 +795,32 @@ function __wbg_get_imports() {
777
795
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
778
796
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
779
797
  },
780
- __wbg_ownKeys_9c0857bab4917919: function() { return handleError(function (arg0) {
798
+ __wbg_ownKeys_a2745e10effd5d46: function() { return handleError(function (arg0) {
781
799
  const ret = Reflect.ownKeys(getObject(arg0));
782
800
  return addHeapObject(ret);
783
801
  }, arguments); },
784
- __wbg_performance_4c23a97261596fec: function(arg0) {
802
+ __wbg_performance_3ef602e13d6c3b56: function(arg0) {
785
803
  const ret = getObject(arg0).performance;
786
804
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
787
805
  },
788
- __wbg_prototypesetcall_46d9a0b93af9df2d: function(arg0, arg1, arg2) {
789
- Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), getObject(arg2));
790
- },
791
- __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
806
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
792
807
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
793
808
  },
794
- __wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
809
+ __wbg_prototypesetcall_ba9c9a7197c11933: function(arg0, arg1, arg2) {
810
+ Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), getObject(arg2));
811
+ },
812
+ __wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
795
813
  const ret = getObject(arg0).push(getObject(arg1));
796
814
  return ret;
797
815
  },
798
- __wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
816
+ __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
799
817
  const ret = getObject(arg0).queueMicrotask;
800
818
  return addHeapObject(ret);
801
819
  },
802
- __wbg_queueMicrotask_311744e534a929a3: function(arg0) {
820
+ __wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
803
821
  queueMicrotask(getObject(arg0));
804
822
  },
805
- __wbg_resolve_d82363d90af6928a: function(arg0) {
823
+ __wbg_resolve_2191a4dfe481c25b: function(arg0) {
806
824
  const ret = Promise.resolve(getObject(arg0));
807
825
  return addHeapObject(ret);
808
826
  },
@@ -810,24 +828,24 @@ function __wbg_get_imports() {
810
828
  const ret = getObject(arg0).run(takeObject(arg1));
811
829
  return addHeapObject(ret);
812
830
  }, arguments); },
813
- __wbg_set_0bf1fca872bc6d18: function(arg0, arg1, arg2) {
831
+ __wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
814
832
  getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
815
833
  },
816
- __wbg_set_4564f7dc44fcb0c9: function() { return handleError(function (arg0, arg1, arg2) {
817
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
818
- return ret;
819
- }, arguments); },
820
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
821
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
822
- },
823
- __wbg_set_9a1d61e17de7054c: function(arg0, arg1, arg2) {
834
+ __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
824
835
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
825
836
  return addHeapObject(ret);
826
837
  },
827
- __wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
838
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
839
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
840
+ },
841
+ __wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
842
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
843
+ return ret;
844
+ }, arguments); },
845
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
828
846
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
829
847
  },
830
- __wbg_slice_a9dfe1d05a7a4016: function(arg0, arg1) {
848
+ __wbg_slice_2b88ff0ac64039d6: function(arg0, arg1) {
831
849
  const ret = getObject(arg1).slice();
832
850
  const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_export);
833
851
  const len1 = WASM_VECTOR_LEN;
@@ -841,31 +859,31 @@ function __wbg_get_imports() {
841
859
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
842
860
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
843
861
  },
844
- __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
845
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
862
+ __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
863
+ const ret = typeof global === 'undefined' ? null : global;
846
864
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
847
865
  },
848
- __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
849
- const ret = typeof global === 'undefined' ? null : global;
866
+ __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
867
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
850
868
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
851
869
  },
852
- __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
870
+ __wbg_static_accessor_SELF_146583524fe1469b: function() {
853
871
  const ret = typeof self === 'undefined' ? null : self;
854
872
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
855
873
  },
856
- __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
874
+ __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
857
875
  const ret = typeof window === 'undefined' ? null : window;
858
876
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
859
877
  },
860
- __wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
878
+ __wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
861
879
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
862
880
  return addHeapObject(ret);
863
881
  },
864
- __wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
882
+ __wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
865
883
  const ret = getObject(arg0).then(getObject(arg1));
866
884
  return addHeapObject(ret);
867
885
  },
868
- __wbg_toString_cfdf82d318967c36: function(arg0) {
886
+ __wbg_toString_4f7aba1d2c471f07: function(arg0) {
869
887
  const ret = getObject(arg0).toString();
870
888
  return addHeapObject(ret);
871
889
  },
@@ -877,7 +895,7 @@ function __wbg_get_imports() {
877
895
  const ret = getObject(arg0).type;
878
896
  return (__wbindgen_enum_DataType.indexOf(ret) + 1 || 16) - 1;
879
897
  },
880
- __wbg_value_49f783bb59765962: function(arg0) {
898
+ __wbg_value_a5d5488a9589444a: function(arg0) {
881
899
  const ret = getObject(arg0).value;
882
900
  return addHeapObject(ret);
883
901
  },
@@ -886,18 +904,18 @@ function __wbg_get_imports() {
886
904
  return addHeapObject(ret);
887
905
  },
888
906
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
889
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 689, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
890
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1968);
907
+ // 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`.
908
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1945);
891
909
  return addHeapObject(ret);
892
910
  },
893
911
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
894
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 916, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
895
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2573);
912
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 910, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
913
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2542);
896
914
  return addHeapObject(ret);
897
915
  },
898
916
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
899
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("boolean")], shim_idx: 689, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
900
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1968_2);
917
+ // 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`.
918
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1945_2);
901
919
  return addHeapObject(ret);
902
920
  },
903
921
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -984,10 +1002,10 @@ function __wbg_get_imports() {
984
1002
  };
985
1003
  }
986
1004
 
987
- function __wasm_bindgen_func_elem_1968(arg0, arg1, arg2) {
1005
+ function __wasm_bindgen_func_elem_1945(arg0, arg1, arg2) {
988
1006
  try {
989
1007
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
990
- wasm.__wasm_bindgen_func_elem_1968(retptr, arg0, arg1, addHeapObject(arg2));
1008
+ wasm.__wasm_bindgen_func_elem_1945(retptr, arg0, arg1, addHeapObject(arg2));
991
1009
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
992
1010
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
993
1011
  if (r1) {
@@ -998,10 +1016,10 @@ function __wasm_bindgen_func_elem_1968(arg0, arg1, arg2) {
998
1016
  }
999
1017
  }
1000
1018
 
1001
- function __wasm_bindgen_func_elem_2573(arg0, arg1, arg2) {
1019
+ function __wasm_bindgen_func_elem_2542(arg0, arg1, arg2) {
1002
1020
  try {
1003
1021
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1004
- wasm.__wasm_bindgen_func_elem_2573(retptr, arg0, arg1, addHeapObject(arg2));
1022
+ wasm.__wasm_bindgen_func_elem_2542(retptr, arg0, arg1, addHeapObject(arg2));
1005
1023
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1006
1024
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1007
1025
  if (r1) {
@@ -1012,10 +1030,10 @@ function __wasm_bindgen_func_elem_2573(arg0, arg1, arg2) {
1012
1030
  }
1013
1031
  }
1014
1032
 
1015
- function __wasm_bindgen_func_elem_1968_2(arg0, arg1, arg2) {
1033
+ function __wasm_bindgen_func_elem_1945_2(arg0, arg1, arg2) {
1016
1034
  try {
1017
1035
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1018
- wasm.__wasm_bindgen_func_elem_1968_2(retptr, arg0, arg1, addHeapObject(arg2));
1036
+ wasm.__wasm_bindgen_func_elem_1945_2(retptr, arg0, arg1, addHeapObject(arg2));
1019
1037
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1020
1038
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1021
1039
  if (r1) {
@@ -1026,8 +1044,8 @@ function __wasm_bindgen_func_elem_1968_2(arg0, arg1, arg2) {
1026
1044
  }
1027
1045
  }
1028
1046
 
1029
- function __wasm_bindgen_func_elem_2583(arg0, arg1, arg2, arg3) {
1030
- wasm.__wasm_bindgen_func_elem_2583(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1047
+ function __wasm_bindgen_func_elem_2566(arg0, arg1, arg2, arg3) {
1048
+ wasm.__wasm_bindgen_func_elem_2566(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1031
1049
  }
1032
1050
 
1033
1051
 
@@ -7,21 +7,21 @@ export const pose_palette: (a: number) => void;
7
7
  export const yolomodel_device: (a: number, b: number) => void;
8
8
  export const yolomodel_load_bytes: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
9
9
  export const yolomodel_names: (a: number, b: number) => void;
10
- export const yolomodel_predict: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
11
- export const yolomodel_predict_rgba: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
10
+ export const yolomodel_predict: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
11
+ export const yolomodel_predict_rgba: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => number;
12
12
  export const yolomodel_task: (a: number, b: number) => void;
13
13
  export const yolopipeline_end2end: (a: number) => number;
14
14
  export const yolopipeline_inputShape: (a: number, b: number) => void;
15
15
  export const yolopipeline_names: (a: number, b: number) => void;
16
16
  export const yolopipeline_new: (a: number, b: number, c: number) => void;
17
- export const yolopipeline_postprocess: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
17
+ export const yolopipeline_postprocess: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
18
18
  export const yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
19
19
  export const yolopipeline_task: (a: number, b: number) => void;
20
20
  export const start: () => void;
21
- export const __wasm_bindgen_func_elem_1968: (a: number, b: number, c: number, d: number) => void;
22
- export const __wasm_bindgen_func_elem_2573: (a: number, b: number, c: number, d: number) => void;
23
- export const __wasm_bindgen_func_elem_1968_2: (a: number, b: number, c: number, d: number) => void;
24
- export const __wasm_bindgen_func_elem_2583: (a: number, b: number, c: number, d: number) => void;
21
+ export const __wasm_bindgen_func_elem_1945: (a: number, b: number, c: number, d: number) => void;
22
+ export const __wasm_bindgen_func_elem_2542: (a: number, b: number, c: number, d: number) => void;
23
+ export const __wasm_bindgen_func_elem_1945_2: (a: number, b: number, c: number, d: number) => void;
24
+ export const __wasm_bindgen_func_elem_2566: (a: number, b: number, c: number, d: number) => void;
25
25
  export const __wbindgen_export: (a: number, b: number) => number;
26
26
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
27
27
  export const __wbindgen_export3: (a: number) => void;