@camstack/addon-pipeline 1.2.329 → 1.2.331
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/dist/audio-analyzer/index.js +2 -2
- package/dist/audio-analyzer/index.mjs +2 -2
- package/dist/{default-detection-model-ChH7Y219.js → default-detection-model-D3SnO2hN.js} +39 -67
- package/dist/{default-detection-model-j0nBpRoB.mjs → default-detection-model-DELTCQgv.mjs} +39 -67
- package/dist/detection-pipeline/index.js +197 -31
- package/dist/detection-pipeline/index.mjs +197 -31
- package/dist/{dist-0HoA3wAi.mjs → dist-CNXhBzn6.mjs} +847 -439
- package/dist/{dist-BlIWhjnu.js → dist-DrUx3EGR.js} +892 -466
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-BPpVMnZy.js → node-B4qy3lnV.js} +1 -1
- package/dist/{node-HOMWRPzW.mjs → node-BmxmlYLx.mjs} +1 -1
- package/dist/pipeline-runner/index.js +355 -104
- package/dist/pipeline-runner/index.mjs +355 -104
- package/dist/{process-memory-DuF8pa2w.mjs → process-memory-BGc5PzZI.mjs} +1 -1
- package/dist/{process-memory-BW06vOIQ.js → process-memory-CRtWJbjV.js} +1 -1
- package/dist/recorder/index.js +7 -7
- package/dist/recorder/index.mjs +7 -7
- package/dist/{segment-demux-js-Dl52Zz8w.js → segment-demux-js-CpSgZmSR.js} +2 -2
- package/dist/{segment-demux-js-BU2MXpln.mjs → segment-demux-js-VqsLAgQ0.mjs} +2 -2
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-vNfS65In.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BnncdmtJ.mjs} +2 -2
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-2jlYV34n.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Bt8aa0wk.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-Ciacp783.mjs → hostInit-CF_2Rlu0.mjs} +2 -2
- package/dist/stream-broker/index.js +713 -80
- package/dist/stream-broker/index.mjs +713 -80
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DfeHvW4k.mjs +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-BpXPNINd.mjs +0 -26
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
const require_process_memory = require("../process-memory-
|
|
6
|
+
const require_dist = require("../dist-DrUx3EGR.js");
|
|
7
|
+
const require_process_memory = require("../process-memory-CRtWJbjV.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
10
10
|
let node_path = require("node:path");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
2
|
+
import { Cn as errMsg, D as HF_BASE_URL, J as audioAnalysisCapability, Ln as nodePin, Mn as expandAudioChunkToF32le, N as PoolMemoryWatchdog, Nn as hydrateSchema, On as audioChunkBytesPerSample, Tn as BaseAddon, Y as audioAnalyzerCapability, er as EventCategory, h as DEFAULT_AUDIO_ANALYZER_CONFIG, jt as mapAudioLabelToMacro, r as AUDIO_BACKEND_CHOICES, tn as resolvePoolMemoryPolicy } from "../dist-CNXhBzn6.mjs";
|
|
3
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BGc5PzZI.mjs";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import { downloadFile } from "@camstack/system/addon-utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-DrUx3EGR.js");
|
|
2
2
|
const require_worker_protocol = require("./worker-protocol-C-G8qmye.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
//#region src/detection-pipeline/registry/effective-confidence.ts
|
|
@@ -1184,27 +1184,8 @@ var ANIMAL_10_LABELS = [
|
|
|
1184
1184
|
"sheep",
|
|
1185
1185
|
"spider"
|
|
1186
1186
|
];
|
|
1187
|
-
var ANIMAL_CLASSIFIER_LABELS = require_dist.
|
|
1188
|
-
var VEHICLE_CLASSIFIER_LABELS = require_dist.
|
|
1189
|
-
/**
|
|
1190
|
-
* The `labelLink` policy field (D715) — offered on every step a root detector
|
|
1191
|
-
* can fill. Stored in the step's own settings (`DeviceStepConfig.settings` /
|
|
1192
|
-
* `CameraStepOverridePatch.settings`), so it has ONE authority. It changes
|
|
1193
|
-
* nothing unless the camera's root model declares it fills this step.
|
|
1194
|
-
*/
|
|
1195
|
-
function labelLinkField(stepName) {
|
|
1196
|
-
return {
|
|
1197
|
-
type: "select",
|
|
1198
|
-
key: require_dist.LABEL_LINK_SETTING_KEY,
|
|
1199
|
-
label: "When the detector already fills this step",
|
|
1200
|
-
description: `Only matters when the root detection model declares it fills ${stepName} (e.g. a Frigate+ model). "Skip" does not run ${stepName} for a subject the detector already named, and makes the detector's label the one answer — but only once every class the detector cannot produce is switched off in this step's class list. "Run" always runs ${stepName}; the detector's label is then a fallback any answer of the step outranks.`,
|
|
1201
|
-
options: require_dist.LABEL_LINK_POLICIES.map((p) => ({
|
|
1202
|
-
value: p,
|
|
1203
|
-
label: p === "run" ? "Run anyway" : "Skip when filled"
|
|
1204
|
-
})),
|
|
1205
|
-
default: require_dist.DEFAULT_LABEL_LINK_POLICY
|
|
1206
|
-
};
|
|
1207
|
-
}
|
|
1187
|
+
var ANIMAL_CLASSIFIER_LABELS = require_dist.LABEL_SUPPLY_VOCABULARIES["animal-classifier"];
|
|
1188
|
+
var VEHICLE_CLASSIFIER_LABELS = require_dist.LABEL_SUPPLY_VOCABULARIES["vehicle-classifier"];
|
|
1208
1189
|
var VGG_G2_CHARSET = [
|
|
1209
1190
|
"",
|
|
1210
1191
|
..."0123456789".split(""),
|
|
@@ -1420,31 +1401,27 @@ var AnimalClassifierStep = class {
|
|
|
1420
1401
|
}
|
|
1421
1402
|
};
|
|
1422
1403
|
getConfigSchema(model) {
|
|
1423
|
-
return [
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
step: .05,
|
|
1445
|
-
showValue: true
|
|
1446
|
-
}
|
|
1447
|
-
];
|
|
1404
|
+
return [{
|
|
1405
|
+
type: "multiselect",
|
|
1406
|
+
key: "enabledClasses",
|
|
1407
|
+
label: "Species",
|
|
1408
|
+
description: "Which animal species to keep (empty = all). The classifier still scores every label but only the selected classes are returned on the detection. When the root model is the source, the same list decides which of its labels become the species; a switched-off species stays \"animal\".",
|
|
1409
|
+
options: ANIMAL_CLASSIFIER_LABELS.map((l) => ({
|
|
1410
|
+
value: l,
|
|
1411
|
+
label: l
|
|
1412
|
+
})),
|
|
1413
|
+
default: []
|
|
1414
|
+
}, {
|
|
1415
|
+
type: "slider",
|
|
1416
|
+
key: "minConfidence",
|
|
1417
|
+
label: "Min Confidence",
|
|
1418
|
+
description: "Drop classifications whose score is below this threshold.",
|
|
1419
|
+
default: resolveModelDefaultConfidence(this.definition, model),
|
|
1420
|
+
min: 0,
|
|
1421
|
+
max: 1,
|
|
1422
|
+
step: .05,
|
|
1423
|
+
showValue: true
|
|
1424
|
+
}];
|
|
1448
1425
|
}
|
|
1449
1426
|
};
|
|
1450
1427
|
/**
|
|
@@ -1482,7 +1459,7 @@ var PackageDetectionStep = class extends PipelineStepBase {
|
|
|
1482
1459
|
step: .05,
|
|
1483
1460
|
default: resolveModelDefaultConfidence(this.definition, model),
|
|
1484
1461
|
showValue: true
|
|
1485
|
-
}
|
|
1462
|
+
}];
|
|
1486
1463
|
}
|
|
1487
1464
|
};
|
|
1488
1465
|
var ClassifierWithMinConfidence = class extends PipelineStepBase {
|
|
@@ -1698,28 +1675,23 @@ var STEP_BIRD_CLASSIFIER = new ClassifierWithMinConfidence({
|
|
|
1698
1675
|
}
|
|
1699
1676
|
});
|
|
1700
1677
|
/**
|
|
1701
|
-
* `vehicle-classifier` — the `minConfidence` slider plus the
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
* the skip applies) and the `labelLink` policy.
|
|
1678
|
+
* `vehicle-classifier` — the `minConfidence` slider plus the class allow-list.
|
|
1679
|
+
* When the step takes the root model's labels (`useRootModel`, D730) the same
|
|
1680
|
+
* allow-list filters which root labels become the vehicle type.
|
|
1705
1681
|
*/
|
|
1706
1682
|
var VehicleClassifierStep = class extends ClassifierWithMinConfidence {
|
|
1707
1683
|
getConfigSchema(model) {
|
|
1708
|
-
return [
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
...super.getConfigSchema(model),
|
|
1721
|
-
labelLinkField("the vehicle classifier")
|
|
1722
|
-
];
|
|
1684
|
+
return [{
|
|
1685
|
+
type: "multiselect",
|
|
1686
|
+
key: "enabledClasses",
|
|
1687
|
+
label: "Vehicle types",
|
|
1688
|
+
description: "Which vehicle types to keep (empty = all). The classifier still scores every type but only the selected ones are returned on the detection. When the root model is the source, the same list decides which of its labels become the type; a switched-off type stays \"vehicle\".",
|
|
1689
|
+
options: VEHICLE_CLASSIFIER_LABELS.map((l) => ({
|
|
1690
|
+
value: l,
|
|
1691
|
+
label: l
|
|
1692
|
+
})),
|
|
1693
|
+
default: []
|
|
1694
|
+
}, ...super.getConfigSchema(model)];
|
|
1723
1695
|
}
|
|
1724
1696
|
};
|
|
1725
1697
|
var STEP_VEHICLE_CLASSIFIER = new VehicleClassifierStep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tt as inferModelProvider, X as audioKindId, b as DEVICE_BACKEND_TO_FORMAT, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, k as LABEL_SUPPLY_VOCABULARIES, on as stepModelRunsOnFormat, p as COCO_TO_MACRO, wt as hfModelUrl } from "./dist-CNXhBzn6.mjs";
|
|
2
2
|
import { t as isWorkerReply } from "./worker-protocol-D_NzPcnh.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/detection-pipeline/registry/effective-confidence.ts
|
|
@@ -1184,27 +1184,8 @@ var ANIMAL_10_LABELS = [
|
|
|
1184
1184
|
"sheep",
|
|
1185
1185
|
"spider"
|
|
1186
1186
|
];
|
|
1187
|
-
var ANIMAL_CLASSIFIER_LABELS =
|
|
1188
|
-
var VEHICLE_CLASSIFIER_LABELS =
|
|
1189
|
-
/**
|
|
1190
|
-
* The `labelLink` policy field (D715) — offered on every step a root detector
|
|
1191
|
-
* can fill. Stored in the step's own settings (`DeviceStepConfig.settings` /
|
|
1192
|
-
* `CameraStepOverridePatch.settings`), so it has ONE authority. It changes
|
|
1193
|
-
* nothing unless the camera's root model declares it fills this step.
|
|
1194
|
-
*/
|
|
1195
|
-
function labelLinkField(stepName) {
|
|
1196
|
-
return {
|
|
1197
|
-
type: "select",
|
|
1198
|
-
key: LABEL_LINK_SETTING_KEY,
|
|
1199
|
-
label: "When the detector already fills this step",
|
|
1200
|
-
description: `Only matters when the root detection model declares it fills ${stepName} (e.g. a Frigate+ model). "Skip" does not run ${stepName} for a subject the detector already named, and makes the detector's label the one answer — but only once every class the detector cannot produce is switched off in this step's class list. "Run" always runs ${stepName}; the detector's label is then a fallback any answer of the step outranks.`,
|
|
1201
|
-
options: LABEL_LINK_POLICIES.map((p) => ({
|
|
1202
|
-
value: p,
|
|
1203
|
-
label: p === "run" ? "Run anyway" : "Skip when filled"
|
|
1204
|
-
})),
|
|
1205
|
-
default: DEFAULT_LABEL_LINK_POLICY
|
|
1206
|
-
};
|
|
1207
|
-
}
|
|
1187
|
+
var ANIMAL_CLASSIFIER_LABELS = LABEL_SUPPLY_VOCABULARIES["animal-classifier"];
|
|
1188
|
+
var VEHICLE_CLASSIFIER_LABELS = LABEL_SUPPLY_VOCABULARIES["vehicle-classifier"];
|
|
1208
1189
|
var VGG_G2_CHARSET = [
|
|
1209
1190
|
"",
|
|
1210
1191
|
..."0123456789".split(""),
|
|
@@ -1420,31 +1401,27 @@ var AnimalClassifierStep = class {
|
|
|
1420
1401
|
}
|
|
1421
1402
|
};
|
|
1422
1403
|
getConfigSchema(model) {
|
|
1423
|
-
return [
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
step: .05,
|
|
1445
|
-
showValue: true
|
|
1446
|
-
}
|
|
1447
|
-
];
|
|
1404
|
+
return [{
|
|
1405
|
+
type: "multiselect",
|
|
1406
|
+
key: "enabledClasses",
|
|
1407
|
+
label: "Species",
|
|
1408
|
+
description: "Which animal species to keep (empty = all). The classifier still scores every label but only the selected classes are returned on the detection. When the root model is the source, the same list decides which of its labels become the species; a switched-off species stays \"animal\".",
|
|
1409
|
+
options: ANIMAL_CLASSIFIER_LABELS.map((l) => ({
|
|
1410
|
+
value: l,
|
|
1411
|
+
label: l
|
|
1412
|
+
})),
|
|
1413
|
+
default: []
|
|
1414
|
+
}, {
|
|
1415
|
+
type: "slider",
|
|
1416
|
+
key: "minConfidence",
|
|
1417
|
+
label: "Min Confidence",
|
|
1418
|
+
description: "Drop classifications whose score is below this threshold.",
|
|
1419
|
+
default: resolveModelDefaultConfidence(this.definition, model),
|
|
1420
|
+
min: 0,
|
|
1421
|
+
max: 1,
|
|
1422
|
+
step: .05,
|
|
1423
|
+
showValue: true
|
|
1424
|
+
}];
|
|
1448
1425
|
}
|
|
1449
1426
|
};
|
|
1450
1427
|
/**
|
|
@@ -1482,7 +1459,7 @@ var PackageDetectionStep = class extends PipelineStepBase {
|
|
|
1482
1459
|
step: .05,
|
|
1483
1460
|
default: resolveModelDefaultConfidence(this.definition, model),
|
|
1484
1461
|
showValue: true
|
|
1485
|
-
}
|
|
1462
|
+
}];
|
|
1486
1463
|
}
|
|
1487
1464
|
};
|
|
1488
1465
|
var ClassifierWithMinConfidence = class extends PipelineStepBase {
|
|
@@ -1698,28 +1675,23 @@ var STEP_BIRD_CLASSIFIER = new ClassifierWithMinConfidence({
|
|
|
1698
1675
|
}
|
|
1699
1676
|
});
|
|
1700
1677
|
/**
|
|
1701
|
-
* `vehicle-classifier` — the `minConfidence` slider plus the
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
* the skip applies) and the `labelLink` policy.
|
|
1678
|
+
* `vehicle-classifier` — the `minConfidence` slider plus the class allow-list.
|
|
1679
|
+
* When the step takes the root model's labels (`useRootModel`, D730) the same
|
|
1680
|
+
* allow-list filters which root labels become the vehicle type.
|
|
1705
1681
|
*/
|
|
1706
1682
|
var VehicleClassifierStep = class extends ClassifierWithMinConfidence {
|
|
1707
1683
|
getConfigSchema(model) {
|
|
1708
|
-
return [
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
...super.getConfigSchema(model),
|
|
1721
|
-
labelLinkField("the vehicle classifier")
|
|
1722
|
-
];
|
|
1684
|
+
return [{
|
|
1685
|
+
type: "multiselect",
|
|
1686
|
+
key: "enabledClasses",
|
|
1687
|
+
label: "Vehicle types",
|
|
1688
|
+
description: "Which vehicle types to keep (empty = all). The classifier still scores every type but only the selected ones are returned on the detection. When the root model is the source, the same list decides which of its labels become the type; a switched-off type stays \"vehicle\".",
|
|
1689
|
+
options: VEHICLE_CLASSIFIER_LABELS.map((l) => ({
|
|
1690
|
+
value: l,
|
|
1691
|
+
label: l
|
|
1692
|
+
})),
|
|
1693
|
+
default: []
|
|
1694
|
+
}, ...super.getConfigSchema(model)];
|
|
1723
1695
|
}
|
|
1724
1696
|
};
|
|
1725
1697
|
var STEP_VEHICLE_CLASSIFIER = new VehicleClassifierStep({
|