@camstack/addon-pipeline 1.2.605 → 1.2.607

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.
Files changed (40) hide show
  1. package/dist/audio-analyzer/index.js +3 -3
  2. package/dist/audio-analyzer/index.mjs +3 -3
  3. package/dist/{custom-model-catalog-CEwbRUr7.js → custom-model-catalog-BpOVFx7P.js} +2 -2
  4. package/dist/{custom-model-catalog-G0HvRpSn.mjs → custom-model-catalog-DLaJSsvd.mjs} +2 -2
  5. package/dist/detection-pipeline/index.js +8 -8
  6. package/dist/detection-pipeline/index.mjs +8 -8
  7. package/dist/{dist-7LlEAfx1.js → dist-D-bDoVTG.js} +328 -33
  8. package/dist/{dist-C_81FQSz.mjs → dist-WJO3x4tA.mjs} +323 -34
  9. package/dist/{model-catalogs-CWnvAqRN.mjs → model-catalogs-BvHHaj9m.mjs} +1 -1
  10. package/dist/{model-catalogs-PZwyhy-6.js → model-catalogs-E_r2YtMC.js} +1 -1
  11. package/dist/motion-wasm/index.js +1 -1
  12. package/dist/motion-wasm/index.mjs +1 -1
  13. package/dist/{node-B8vaXwjz.js → node-BJDseChf.js} +1 -1
  14. package/dist/{node-Du8pLNm0.mjs → node-D5ayR7EC.mjs} +1 -1
  15. package/dist/pipeline-runner/index.js +3 -3
  16. package/dist/pipeline-runner/index.mjs +3 -3
  17. package/dist/{process-memory-BpmFzpGK.mjs → process-memory-C1hvzW6x.mjs} +1 -1
  18. package/dist/{process-memory-BekNMmIb.js → process-memory-DIqH04KJ.js} +1 -1
  19. package/dist/recorder/index.js +22 -12
  20. package/dist/recorder/index.mjs +22 -12
  21. package/dist/{segment-demux-js-DgTOmmSE.mjs → segment-demux-js-DTTNHdKF.mjs} +1 -1
  22. package/dist/{segment-demux-js-CAVgSBfN.js → segment-demux-js-WMKDNa0d.js} +1 -1
  23. package/dist/stream-broker/_stub.js +2 -2
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Bcv9Iadt.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-C4TOr0w_.mjs} +3 -3
  25. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CGrJJEuu.mjs +26 -0
  26. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CixUA9FW.mjs +26 -0
  27. package/dist/stream-broker/demux-worker-child.js +1 -1
  28. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  29. package/dist/stream-broker/{hostInit-BPTm2pJj.mjs → hostInit-BA7YCeDs.mjs} +3 -3
  30. package/dist/stream-broker/index.js +3 -3
  31. package/dist/stream-broker/index.mjs +3 -3
  32. package/dist/stream-broker/remoteEntry.js +1 -1
  33. package/package.json +1 -1
  34. package/python/edgetpu-install.sh +98 -0
  35. package/python/edgetpu_device.py +59 -0
  36. package/python/inference_pool.py +18 -5
  37. package/python/requirements-edgetpu.txt +9 -4
  38. package/python/test_edgetpu_device.py +74 -0
  39. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-UQheneKm.mjs +0 -26
  40. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CSyOD5De.mjs +0 -26
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-7LlEAfx1.js");
7
- const require_model_catalogs = require("../model-catalogs-PZwyhy-6.js");
8
- const require_process_memory = require("../process-memory-BekNMmIb.js");
6
+ const require_dist = require("../dist-D-bDoVTG.js");
7
+ const require_model_catalogs = require("../model-catalogs-E_r2YtMC.js");
8
+ const require_process_memory = require("../process-memory-DIqH04KJ.js");
9
9
  let node_fs = require("node:fs");
10
10
  node_fs = require_chunk.__toESM(node_fs);
11
11
  let node_path = require("node:path");
@@ -1,7 +1,7 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog, Gn as hydrateSchema, Lt as mapAudioLabelToMacro, Nn as BaseAddon, Q as audioAnalysisCapability, Rn as audioChunkBytesPerSample, Un as expandAudioChunkToF32le, Zn as nodePin, cn as resolvePoolMemoryPolicy, h as DEFAULT_AUDIO_ANALYZER_CONFIG, jn as errMsg, mr as EventCategory, r as AUDIO_BACKEND_CHOICES } from "../dist-C_81FQSz.mjs";
3
- import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-CWnvAqRN.mjs";
4
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BpmFzpGK.mjs";
2
+ import { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog, Kn as hydrateSchema, Mn as errMsg, Pn as BaseAddon, Q as audioAnalysisCapability, Qn as nodePin, Rt as mapAudioLabelToMacro, Wn as expandAudioChunkToF32le, h as DEFAULT_AUDIO_ANALYZER_CONFIG, hr as EventCategory, ln as resolvePoolMemoryPolicy, r as AUDIO_BACKEND_CHOICES, zn as audioChunkBytesPerSample } from "../dist-WJO3x4tA.mjs";
3
+ import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-BvHHaj9m.mjs";
4
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-C1hvzW6x.mjs";
5
5
  import * as fs from "node:fs";
6
6
  import * as path$1 from "node:path";
7
7
  import { ensureModel } from "@camstack/system/addon-utils";
@@ -1,5 +1,5 @@
1
- const require_dist = require("./dist-7LlEAfx1.js");
2
- const require_model_catalogs = require("./model-catalogs-PZwyhy-6.js");
1
+ const require_dist = require("./dist-D-bDoVTG.js");
2
+ const require_model_catalogs = require("./model-catalogs-E_r2YtMC.js");
3
3
  const require_worker_protocol = require("./worker-protocol-C-G8qmye.js");
4
4
  let node_crypto = require("node:crypto");
5
5
  //#region src/detection-pipeline/registry/effective-confidence.ts
@@ -1,5 +1,5 @@
1
- import { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, jt as inferModelProvider, k as LABEL_SUPPLY_VOCABULARIES, mn as stepModelRunsOnFormat, p as COCO_TO_MACRO } from "./dist-C_81FQSz.mjs";
2
- import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-CWnvAqRN.mjs";
1
+ import { Mt as inferModelProvider, b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, hn as stepModelRunsOnFormat, i as AUDIO_MACRO_LABELS, k as LABEL_SUPPLY_VOCABULARIES, p as COCO_TO_MACRO } from "./dist-WJO3x4tA.mjs";
2
+ import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-BvHHaj9m.mjs";
3
3
  import { t as isWorkerReply } from "./worker-protocol-D_NzPcnh.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  //#region src/detection-pipeline/registry/effective-confidence.ts
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-7LlEAfx1.js");
7
- const require_node = require("../node-B8vaXwjz.js");
8
- const require_custom_model_catalog = require("../custom-model-catalog-CEwbRUr7.js");
6
+ const require_dist = require("../dist-D-bDoVTG.js");
7
+ const require_node = require("../node-BJDseChf.js");
8
+ const require_custom_model_catalog = require("../custom-model-catalog-BpOVFx7P.js");
9
9
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
10
- const require_process_memory = require("../process-memory-BekNMmIb.js");
10
+ const require_process_memory = require("../process-memory-DIqH04KJ.js");
11
11
  let node_os = require("node:os");
12
12
  node_os = require_chunk.__toESM(node_os);
13
13
  let node_fs = require("node:fs");
@@ -58,7 +58,7 @@ function npuInfoFrom(hw) {
58
58
  return { type };
59
59
  }
60
60
  function coralInfoFrom(hw) {
61
- return hw.coral?.type === "coral-edgetpu" ? { type: "coral-edgetpu" } : null;
61
+ return hw.coral?.type === "coral-edgetpu" ? hw.coral : null;
62
62
  }
63
63
  function envToHardwareInfo(env) {
64
64
  return {
@@ -1368,7 +1368,7 @@ var PoolWorker = class {
1368
1368
  modelLoadTimeoutMs: POOL_MODEL_LOAD_BOUNDS[this.opts.poolRuntime].softMs,
1369
1369
  models: initialModels.map((m) => serializeModelConfig(m))
1370
1370
  };
1371
- if (this.opts.device) config["device"] = this.opts.device;
1371
+ if (this.opts.device) config["device"] = this.opts.poolRuntime === "edgetpu" ? require_dist.edgetpuDelegateDevice(this.opts.device) : this.opts.device;
1372
1372
  if (this.opts.tuning) {
1373
1373
  config["batch_mode"] = this.opts.tuning.batchMode;
1374
1374
  config["window_ms"] = this.opts.tuning.windowMs;
@@ -8232,7 +8232,7 @@ function toProbedHardware(hw) {
8232
8232
  return {
8233
8233
  npu: hw.npu ? { type: hw.npu.type } : null,
8234
8234
  gpu: hw.gpu ? { type: hw.gpu.type } : null,
8235
- coral: hw.coral ? { type: hw.coral.type } : null
8235
+ coral: hw.coral ?? null
8236
8236
  };
8237
8237
  }
8238
8238
  var ONNX_FLOOR = {
@@ -11984,7 +11984,7 @@ var DetectionPipelineAddon = class extends require_dist.BaseAddon {
11984
11984
  return {
11985
11985
  npu: hw.npu ? { type: hw.npu.type } : null,
11986
11986
  gpu: hw.gpu ? { type: hw.gpu.type } : null,
11987
- coral: hw.coral ? { type: hw.coral.type } : null,
11987
+ coral: hw.coral ?? null,
11988
11988
  platform: hw.platform,
11989
11989
  arch: hw.arch
11990
11990
  };
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { F as PoolMemoryWatchdog, Ft as loadContributionCapability, Gn as hydrateSchema, Gt as overlayClusterStepSettings, Nn as BaseAddon, Nt as linkedLabelStepId, O as LABEL_SUPPLY_MACRO, St as evaluateZoneRules, Ut as modelBindingKey, Wn as hfModelUrl, X as applyModelBoundSettings, Xt as pipelineExecutorCapability, Zn as nodePin, _t as detectionPipelineCapability, cn as resolvePoolMemoryPolicy, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, dn as rootSuppliesOf, er as sleep, fn as runtimeDevices$1, fr as string, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, jn as errMsg$1, lr as object, mn as stepModelRunsOnFormat, mr as EventCategory, n as APPLE_SA_TO_MACRO, pr as union, q as YAMNET_TO_MACRO, qt as pickClusterStepSettings, rn as resolveClusterStepModelId, rr as array, st as collectModelBoundKeys, xt as enumerateInferenceDevices, yn as supportedRuntimes$1, zn as createEvent } from "../dist-C_81FQSz.mjs";
3
- import { c as readProcessCost } from "../node-Du8pLNm0.mjs";
4
- import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-G0HvRpSn.mjs";
2
+ import { Bn as createEvent, Ct as evaluateZoneRules, F as PoolMemoryWatchdog, Gn as hfModelUrl, It as loadContributionCapability, Jt as pickClusterStepSettings, Kn as hydrateSchema, Kt as overlayClusterStepSettings, Mn as errMsg$1, O as LABEL_SUPPLY_MACRO, Pn as BaseAddon, Pt as linkedLabelStepId, Qn as nodePin, St as enumerateInferenceDevices, Wt as modelBindingKey, X as applyModelBoundSettings, Zt as pipelineExecutorCapability, _t as detectionPipelineCapability, bn as supportedRuntimes$1, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, fn as rootSuppliesOf, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, hn as stepModelRunsOnFormat, hr as EventCategory, in as resolveClusterStepModelId, ir as array, ln as resolvePoolMemoryPolicy, mr as union, n as APPLE_SA_TO_MACRO, pn as runtimeDevices$1, pr as string, q as YAMNET_TO_MACRO, st as collectModelBoundKeys, tr as sleep, ur as object, yt as edgetpuDelegateDevice } from "../dist-WJO3x4tA.mjs";
3
+ import { c as readProcessCost } from "../node-D5ayR7EC.mjs";
4
+ import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-DLaJSsvd.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BpmFzpGK.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-C1hvzW6x.mjs";
7
7
  import * as os$1 from "node:os";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -51,7 +51,7 @@ function npuInfoFrom(hw) {
51
51
  return { type };
52
52
  }
53
53
  function coralInfoFrom(hw) {
54
- return hw.coral?.type === "coral-edgetpu" ? { type: "coral-edgetpu" } : null;
54
+ return hw.coral?.type === "coral-edgetpu" ? hw.coral : null;
55
55
  }
56
56
  function envToHardwareInfo(env) {
57
57
  return {
@@ -1361,7 +1361,7 @@ var PoolWorker = class {
1361
1361
  modelLoadTimeoutMs: POOL_MODEL_LOAD_BOUNDS[this.opts.poolRuntime].softMs,
1362
1362
  models: initialModels.map((m) => serializeModelConfig(m))
1363
1363
  };
1364
- if (this.opts.device) config["device"] = this.opts.device;
1364
+ if (this.opts.device) config["device"] = this.opts.poolRuntime === "edgetpu" ? edgetpuDelegateDevice(this.opts.device) : this.opts.device;
1365
1365
  if (this.opts.tuning) {
1366
1366
  config["batch_mode"] = this.opts.tuning.batchMode;
1367
1367
  config["window_ms"] = this.opts.tuning.windowMs;
@@ -8225,7 +8225,7 @@ function toProbedHardware(hw) {
8225
8225
  return {
8226
8226
  npu: hw.npu ? { type: hw.npu.type } : null,
8227
8227
  gpu: hw.gpu ? { type: hw.gpu.type } : null,
8228
- coral: hw.coral ? { type: hw.coral.type } : null
8228
+ coral: hw.coral ?? null
8229
8229
  };
8230
8230
  }
8231
8231
  var ONNX_FLOOR = {
@@ -11977,7 +11977,7 @@ var DetectionPipelineAddon = class extends BaseAddon {
11977
11977
  return {
11978
11978
  npu: hw.npu ? { type: hw.npu.type } : null,
11979
11979
  gpu: hw.gpu ? { type: hw.gpu.type } : null,
11980
- coral: hw.coral ? { type: hw.coral.type } : null,
11980
+ coral: hw.coral ?? null,
11981
11981
  platform: hw.platform,
11982
11982
  arch: hw.arch
11983
11983
  };