@camstack/addon-post-analysis 0.2.2 → 1.0.1

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.
@@ -6604,42 +6604,6 @@ function cosineSimilarity(a, b) {
6604
6604
  return denom === 0 ? 0 : dotProduct / denom;
6605
6605
  }
6606
6606
  /**
6607
- * Map a backend ID to the model format it requires.
6608
- *
6609
- * Node.js backends (cpu, coreml, cuda, tensorrt) all use ONNX format
6610
- * because onnxruntime-node loads .onnx and uses execution providers internally.
6611
- *
6612
- * Python backends use their native format.
6613
- */
6614
- var BACKEND_TO_FORMAT = {
6615
- cpu: "onnx",
6616
- coreml: "onnx",
6617
- cuda: "onnx",
6618
- tensorrt: "onnx",
6619
- "onnx-py": "onnx",
6620
- pytorch: "pt",
6621
- openvino: "openvino"
6622
- };
6623
- /**
6624
- * Map DetectionRuntime to ModelFormat.
6625
- * Used when the addon receives an explicit runtime (not 'auto').
6626
- */
6627
- var RUNTIME_TO_FORMAT = {
6628
- onnx: "onnx",
6629
- coreml: "coreml",
6630
- openvino: "openvino",
6631
- tflite: "tflite",
6632
- pytorch: "pt"
6633
- };
6634
- /**
6635
- * Map a Python backend to the Python inference script name.
6636
- */
6637
- var PYTHON_SCRIPT = {
6638
- coreml: "coreml_inference.py",
6639
- pytorch: "pytorch_inference.py",
6640
- openvino: "openvino_inference.py"
6641
- };
6642
- /**
6643
6607
  import { errMsg } from '@camstack/types'
6644
6608
  * Extract a human-readable message from an unknown error value.
6645
6609
  * Replaces the ubiquitous `errMsg(err)` pattern.
@@ -20769,12 +20733,6 @@ Object.freeze({
20769
20733
  "smtp-provider": "email"
20770
20734
  });
20771
20735
  //#endregion
20772
- Object.defineProperty(exports, "BACKEND_TO_FORMAT", {
20773
- enumerable: true,
20774
- get: function() {
20775
- return BACKEND_TO_FORMAT;
20776
- }
20777
- });
20778
20736
  Object.defineProperty(exports, "BaseAddon", {
20779
20737
  enumerable: true,
20780
20738
  get: function() {
@@ -20793,18 +20751,6 @@ Object.defineProperty(exports, "EventCategory", {
20793
20751
  return EventCategory;
20794
20752
  }
20795
20753
  });
20796
- Object.defineProperty(exports, "PYTHON_SCRIPT", {
20797
- enumerable: true,
20798
- get: function() {
20799
- return PYTHON_SCRIPT;
20800
- }
20801
- });
20802
- Object.defineProperty(exports, "RUNTIME_TO_FORMAT", {
20803
- enumerable: true,
20804
- get: function() {
20805
- return RUNTIME_TO_FORMAT;
20806
- }
20807
- });
20808
20754
  Object.defineProperty(exports, "__toESM", {
20809
20755
  enumerable: true,
20810
20756
  get: function() {
@@ -6582,42 +6582,6 @@ function cosineSimilarity(a, b) {
6582
6582
  return denom === 0 ? 0 : dotProduct / denom;
6583
6583
  }
6584
6584
  /**
6585
- * Map a backend ID to the model format it requires.
6586
- *
6587
- * Node.js backends (cpu, coreml, cuda, tensorrt) all use ONNX format
6588
- * because onnxruntime-node loads .onnx and uses execution providers internally.
6589
- *
6590
- * Python backends use their native format.
6591
- */
6592
- var BACKEND_TO_FORMAT = {
6593
- cpu: "onnx",
6594
- coreml: "onnx",
6595
- cuda: "onnx",
6596
- tensorrt: "onnx",
6597
- "onnx-py": "onnx",
6598
- pytorch: "pt",
6599
- openvino: "openvino"
6600
- };
6601
- /**
6602
- * Map DetectionRuntime to ModelFormat.
6603
- * Used when the addon receives an explicit runtime (not 'auto').
6604
- */
6605
- var RUNTIME_TO_FORMAT = {
6606
- onnx: "onnx",
6607
- coreml: "coreml",
6608
- openvino: "openvino",
6609
- tflite: "tflite",
6610
- pytorch: "pt"
6611
- };
6612
- /**
6613
- * Map a Python backend to the Python inference script name.
6614
- */
6615
- var PYTHON_SCRIPT = {
6616
- coreml: "coreml_inference.py",
6617
- pytorch: "pytorch_inference.py",
6618
- openvino: "openvino_inference.py"
6619
- };
6620
- /**
6621
6585
  import { errMsg } from '@camstack/types'
6622
6586
  * Extract a human-readable message from an unknown error value.
6623
6587
  * Replaces the ubiquitous `errMsg(err)` pattern.
@@ -20747,4 +20711,4 @@ Object.freeze({
20747
20711
  "smtp-provider": "email"
20748
20712
  });
20749
20713
  //#endregion
20750
- export { number as C, tuple as E, boolean as S, string as T, plateGalleryCapability as _, PYTHON_SCRIPT as a, _enum as b, asJsonObject as c, createEvent as d, embeddingEncoderCapability as f, pipelineAnalyticsCapability as g, hydrateSchema as h, EventCategory as i, audioMetricsCapability as l, faceGalleryCapability as m, BaseAddon as n, RUNTIME_TO_FORMAT as o, errMsg as p, DeviceType as r, addonWidgetsSourceCapability as s, BACKEND_TO_FORMAT as t, cosineSimilarity as u, videoclipsCapability as v, object as w, array as x, zoneAnalyticsCapability as y };
20714
+ export { tuple as C, string as S, _enum as _, asJsonObject as a, number as b, createEvent as c, faceGalleryCapability as d, hydrateSchema as f, zoneAnalyticsCapability as g, videoclipsCapability as h, addonWidgetsSourceCapability as i, embeddingEncoderCapability as l, plateGalleryCapability as m, DeviceType as n, audioMetricsCapability as o, pipelineAnalyticsCapability as p, EventCategory as r, cosineSimilarity as s, BaseAddon as t, errMsg as u, array as v, object as x, boolean as y };