@camstack/addon-pipeline 0.1.11 → 0.1.12
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/assets/icon.svg +6 -0
- package/dist/audio-analyzer/index.js +16 -16
- package/dist/audio-analyzer/index.mjs +1 -1
- package/dist/audio-codec-nodeav/index.js +7 -7
- package/dist/audio-codec-nodeav/index.mjs +1 -1
- package/dist/decoder-nodeav/index.js +12 -12
- package/dist/decoder-nodeav/index.mjs +1 -1
- package/dist/detection-pipeline/index.js +45 -45
- package/dist/detection-pipeline/index.js.map +1 -1
- package/dist/detection-pipeline/index.mjs +1 -1
- package/dist/index-BhOycEVH.js +13867 -0
- package/dist/index-BhOycEVH.js.map +1 -0
- package/dist/index-FxfFGsiL.mjs +13868 -0
- package/dist/index-FxfFGsiL.mjs.map +1 -0
- package/dist/motion-wasm/index.js +8 -8
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +76 -77
- package/dist/pipeline-runner/index.js.map +1 -1
- package/dist/pipeline-runner/index.mjs +50 -51
- package/dist/pipeline-runner/index.mjs.map +1 -1
- package/dist/stream-broker/@mf-types.zip +0 -0
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BvJPhiY_.mjs +20 -0
- package/dist/stream-broker/_stub.js +1 -1
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BuV9ar3i.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Czwg8GUO.mjs} +6 -6
- package/dist/stream-broker/{hostInit-CjVI5LuK.mjs → hostInit-fG6oFw4t.mjs} +6 -6
- package/dist/stream-broker/{index-BF5Qr03x.mjs → index-BOmtakNy.mjs} +66 -43
- package/dist/stream-broker/{index-DUJwOcGq.mjs → index-Bpv0NSqI.mjs} +1733 -1569
- package/dist/stream-broker/{index-DuBCn5us.mjs → index-l13fl8lu.mjs} +378 -373
- package/dist/stream-broker/index.js +100 -100
- package/dist/stream-broker/index.js.map +1 -1
- package/dist/stream-broker/index.mjs +1 -1
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +24 -9
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-DbMNirr7.mjs +0 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineCustomActions, customAction, BaseAddon, EventCategory, pipelineRunnerCapability, errMsg, createEvent } from "
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import { o as object, s as string, _ as _enum, l as lazy, a as array, b as boolean, n as number, d as defineCustomActions, c as customAction, B as BaseAddon, E as EventCategory, p as pipelineRunnerCapability, e as errMsg, f as createEvent } from "../index-FxfFGsiL.mjs";
|
|
3
2
|
class FrameQueue {
|
|
4
3
|
constructor(maxSize) {
|
|
5
4
|
this.maxSize = maxSize;
|
|
@@ -562,65 +561,65 @@ class PipelineRunner {
|
|
|
562
561
|
return null;
|
|
563
562
|
}
|
|
564
563
|
}
|
|
565
|
-
const BenchEngineChoiceSchema =
|
|
566
|
-
runtime:
|
|
567
|
-
backend:
|
|
568
|
-
format:
|
|
569
|
-
device:
|
|
564
|
+
const BenchEngineChoiceSchema = object({
|
|
565
|
+
runtime: _enum(["node", "python"]),
|
|
566
|
+
backend: string(),
|
|
567
|
+
format: _enum(["onnx", "coreml", "openvino", "tflite", "pt"]),
|
|
568
|
+
device: string().optional()
|
|
570
569
|
});
|
|
571
|
-
const BenchStepSchema =
|
|
572
|
-
addonId:
|
|
573
|
-
modelId:
|
|
574
|
-
enabled:
|
|
575
|
-
children:
|
|
570
|
+
const BenchStepSchema = lazy(() => object({
|
|
571
|
+
addonId: string(),
|
|
572
|
+
modelId: string(),
|
|
573
|
+
enabled: boolean(),
|
|
574
|
+
children: array(BenchStepSchema).optional()
|
|
576
575
|
}));
|
|
577
|
-
const CacheBenchFrameInputSchema =
|
|
578
|
-
imageBase64:
|
|
579
|
-
ttlSeconds:
|
|
576
|
+
const CacheBenchFrameInputSchema = object({
|
|
577
|
+
imageBase64: string(),
|
|
578
|
+
ttlSeconds: number().int().positive().optional()
|
|
580
579
|
});
|
|
581
|
-
const CacheBenchFrameResultSchema =
|
|
582
|
-
frameId:
|
|
583
|
-
width:
|
|
584
|
-
height:
|
|
585
|
-
expiresAt:
|
|
580
|
+
const CacheBenchFrameResultSchema = object({
|
|
581
|
+
frameId: string(),
|
|
582
|
+
width: number(),
|
|
583
|
+
height: number(),
|
|
584
|
+
expiresAt: number()
|
|
586
585
|
});
|
|
587
|
-
const ReleaseBenchFrameInputSchema =
|
|
588
|
-
frameId:
|
|
586
|
+
const ReleaseBenchFrameInputSchema = object({
|
|
587
|
+
frameId: string()
|
|
589
588
|
});
|
|
590
|
-
const ReleaseBenchFrameResultSchema =
|
|
591
|
-
released:
|
|
589
|
+
const ReleaseBenchFrameResultSchema = object({
|
|
590
|
+
released: boolean()
|
|
592
591
|
});
|
|
593
|
-
const RunSyntheticBenchInputSchema =
|
|
594
|
-
frameId:
|
|
595
|
-
steps:
|
|
596
|
-
parallel:
|
|
597
|
-
iterations:
|
|
598
|
-
warmup:
|
|
599
|
-
sessionId:
|
|
600
|
-
simulatePipeline:
|
|
592
|
+
const RunSyntheticBenchInputSchema = object({
|
|
593
|
+
frameId: string(),
|
|
594
|
+
steps: array(BenchStepSchema).min(1),
|
|
595
|
+
parallel: number().int().min(1).max(32),
|
|
596
|
+
iterations: number().int().min(1).max(1e4),
|
|
597
|
+
warmup: number().int().min(0).max(100).optional(),
|
|
598
|
+
sessionId: string().optional(),
|
|
599
|
+
simulatePipeline: boolean().optional(),
|
|
601
600
|
engine: BenchEngineChoiceSchema.optional()
|
|
602
601
|
});
|
|
603
|
-
const TimingSplitSchema =
|
|
604
|
-
mean:
|
|
605
|
-
p50:
|
|
606
|
-
p95:
|
|
607
|
-
p99:
|
|
602
|
+
const TimingSplitSchema = object({
|
|
603
|
+
mean: number(),
|
|
604
|
+
p50: number(),
|
|
605
|
+
p95: number(),
|
|
606
|
+
p99: number()
|
|
608
607
|
});
|
|
609
|
-
const RunSyntheticBenchResultSchema =
|
|
610
|
-
runs:
|
|
611
|
-
wallSec:
|
|
612
|
-
fps:
|
|
613
|
-
detectionsPerSec:
|
|
614
|
-
avgDetections:
|
|
608
|
+
const RunSyntheticBenchResultSchema = object({
|
|
609
|
+
runs: number(),
|
|
610
|
+
wallSec: number(),
|
|
611
|
+
fps: number(),
|
|
612
|
+
detectionsPerSec: number(),
|
|
613
|
+
avgDetections: number(),
|
|
615
614
|
callMs: TimingSplitSchema,
|
|
616
|
-
inferMs:
|
|
617
|
-
preprocessMs:
|
|
618
|
-
predictMs:
|
|
619
|
-
batchSizeMean:
|
|
620
|
-
batchSizeMax:
|
|
621
|
-
engine:
|
|
622
|
-
tuning:
|
|
623
|
-
path:
|
|
615
|
+
inferMs: number(),
|
|
616
|
+
preprocessMs: number(),
|
|
617
|
+
predictMs: number(),
|
|
618
|
+
batchSizeMean: number(),
|
|
619
|
+
batchSizeMax: number(),
|
|
620
|
+
engine: object({ runtime: string(), backend: string(), device: string().optional() }).optional(),
|
|
621
|
+
tuning: object({ batchMode: string(), windowMs: number(), maxBatchSize: number(), concurrency: number() }).optional(),
|
|
622
|
+
path: string().optional()
|
|
624
623
|
});
|
|
625
624
|
const pipelineRunnerBenchActions = defineCustomActions({
|
|
626
625
|
cacheBenchFrame: customAction(
|