@camstack/addon-post-analysis 1.2.104 → 1.2.107
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/{dist-IZLiqXRa.mjs → dist-Dv2LOr1d.mjs} +283 -10
- package/dist/{dist-KXhjlCmh.js → dist-wQmgHP6h.js} +300 -9
- package/dist/embedding-encoder/index.js +89 -131
- package/dist/embedding-encoder/index.mjs +89 -131
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-D8fRo8aP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-Ds7UUptm.mjs} +3 -3
- package/dist/pipeline-analytics/{hostInit-7agPxY0d.mjs → hostInit-B30POcEN.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +5212 -1068
- package/dist/pipeline-analytics/index.mjs +5202 -1060
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +8 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as PoolMemoryWatchdog, St as BaseAddon, ct as parseProcStatus, et as embeddingEncoderCapability, mt as resolvePoolMemoryPolicy, rt as hfModelUrl } from "../dist-Dv2LOr1d.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import "node:fs";
|
|
@@ -348,139 +348,99 @@ var MLPACKAGE_FILES = [
|
|
|
348
348
|
"Data/com.apple.CoreML/model.mlmodel",
|
|
349
349
|
"Data/com.apple.CoreML/weights/weight.bin"
|
|
350
350
|
];
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
coreml: {
|
|
369
|
-
url: hf("clip/mobileclip-s0/coreml/camstack-mobileclip-s0-vision.mlpackage"),
|
|
370
|
-
sizeMB: 30,
|
|
371
|
-
isDirectory: true,
|
|
372
|
-
files: [...MLPACKAGE_FILES],
|
|
373
|
-
runtimes: ["python"]
|
|
374
|
-
}
|
|
375
|
-
}
|
|
351
|
+
/**
|
|
352
|
+
* NO onnx vision builds, deliberately (2026-08-21). The int8 ONNX vision
|
|
353
|
+
* exports were measured misaligned with the text encoders (matched image↔text
|
|
354
|
+
* cosine ≈ 0.01 vs ≈ 0.22 for the fp16 openvino/coreml builds) — see the
|
|
355
|
+
* catalog note in `addon-pipeline/.../model-catalogs.ts`. The image-encode leg
|
|
356
|
+
* that consumed them here (`embeddingEncoder.encode` → PythonRawTensorEngine)
|
|
357
|
+
* is retired with them: its only caller discarded the vector, and its
|
|
358
|
+
* `preprocessForClip` applied OpenAI mean/std that MobileCLIP never used.
|
|
359
|
+
* S0 was retired the same day (measured worst of the family on fleet crops).
|
|
360
|
+
*/
|
|
361
|
+
var CLIP_IMAGE_MODELS = [{
|
|
362
|
+
id: "mobileclip-s1",
|
|
363
|
+
name: "MobileCLIP S1",
|
|
364
|
+
description: "Apple MobileCLIP S1 — balanced vision encoder, 512-dim, 256×256 (fp16 OpenVINO/CoreML)",
|
|
365
|
+
inputSize: {
|
|
366
|
+
width: 256,
|
|
367
|
+
height: 256
|
|
376
368
|
},
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
formats: {
|
|
388
|
-
onnx: {
|
|
389
|
-
url: hf("clip/mobileclip-s1/onnx/camstack-mobileclip-s1-vision.onnx"),
|
|
390
|
-
sizeMB: 90
|
|
391
|
-
},
|
|
392
|
-
openvino: ovFormat(hf("clip/mobileclip-s1/openvino/camstack-mobileclip-s1-vision.xml"), 55),
|
|
393
|
-
coreml: {
|
|
394
|
-
url: hf("clip/mobileclip-s1/coreml/camstack-mobileclip-s1-vision.mlpackage"),
|
|
395
|
-
sizeMB: 65,
|
|
396
|
-
isDirectory: true,
|
|
397
|
-
files: [...MLPACKAGE_FILES],
|
|
398
|
-
runtimes: ["python"]
|
|
399
|
-
}
|
|
369
|
+
labels: [],
|
|
370
|
+
inputNormalization: "none",
|
|
371
|
+
formats: {
|
|
372
|
+
openvino: ovFormat(hf("clip/mobileclip-s1/openvino/camstack-mobileclip-s1-vision.xml"), 55),
|
|
373
|
+
coreml: {
|
|
374
|
+
url: hf("clip/mobileclip-s1/coreml/camstack-mobileclip-s1-vision.mlpackage"),
|
|
375
|
+
sizeMB: 65,
|
|
376
|
+
isDirectory: true,
|
|
377
|
+
files: [...MLPACKAGE_FILES],
|
|
378
|
+
runtimes: ["python"]
|
|
400
379
|
}
|
|
380
|
+
}
|
|
381
|
+
}, {
|
|
382
|
+
id: "mobileclip-s2",
|
|
383
|
+
name: "MobileCLIP S2",
|
|
384
|
+
description: "Apple MobileCLIP S2 — high-accuracy vision encoder, 512-dim, 256×256 (fp16 OpenVINO/CoreML)",
|
|
385
|
+
inputSize: {
|
|
386
|
+
width: 256,
|
|
387
|
+
height: 256
|
|
401
388
|
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
formats: {
|
|
413
|
-
onnx: {
|
|
414
|
-
url: hf("clip/mobileclip-s2/onnx/camstack-mobileclip-s2-vision.onnx"),
|
|
415
|
-
sizeMB: 150
|
|
416
|
-
},
|
|
417
|
-
openvino: ovFormat(hf("clip/mobileclip-s2/openvino/camstack-mobileclip-s2-vision.xml"), 90),
|
|
418
|
-
coreml: {
|
|
419
|
-
url: hf("clip/mobileclip-s2/coreml/camstack-mobileclip-s2-vision.mlpackage"),
|
|
420
|
-
sizeMB: 110,
|
|
421
|
-
isDirectory: true,
|
|
422
|
-
files: [...MLPACKAGE_FILES],
|
|
423
|
-
runtimes: ["python"]
|
|
424
|
-
}
|
|
389
|
+
labels: [],
|
|
390
|
+
inputNormalization: "none",
|
|
391
|
+
formats: {
|
|
392
|
+
openvino: ovFormat(hf("clip/mobileclip-s2/openvino/camstack-mobileclip-s2-vision.xml"), 90),
|
|
393
|
+
coreml: {
|
|
394
|
+
url: hf("clip/mobileclip-s2/coreml/camstack-mobileclip-s2-vision.mlpackage"),
|
|
395
|
+
sizeMB: 110,
|
|
396
|
+
isDirectory: true,
|
|
397
|
+
files: [...MLPACKAGE_FILES],
|
|
398
|
+
runtimes: ["python"]
|
|
425
399
|
}
|
|
426
400
|
}
|
|
427
|
-
];
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
files: [TOKENIZER_FILE]
|
|
443
|
-
},
|
|
444
|
-
openvino: ovFormat(hf("clip/mobileclip-s0/openvino/camstack-mobileclip-s0-text.xml"), 22)
|
|
445
|
-
}
|
|
401
|
+
}];
|
|
402
|
+
/**
|
|
403
|
+
* The int8 TEXT onnx encoders are healthy — unlike the retired int8 vision
|
|
404
|
+
* exports. Verified 2026-08-21: the live search path (fp16 openvino vision
|
|
405
|
+
* vectors ⋅ int8 onnx text queries) ranks correctly on the real index, and the
|
|
406
|
+
* local cross-check aligns them with the fp16 vision space (cos ≈ 0.22 on
|
|
407
|
+
* matched pairs).
|
|
408
|
+
*/
|
|
409
|
+
var CLIP_TEXT_MODELS = [{
|
|
410
|
+
id: "mobileclip-s1-text",
|
|
411
|
+
name: "MobileCLIP S1 Text Encoder",
|
|
412
|
+
description: "Text encoder for MobileCLIP S1, 512-dim, int8 quantized (61 MB)",
|
|
413
|
+
inputSize: {
|
|
414
|
+
width: 0,
|
|
415
|
+
height: 0
|
|
446
416
|
},
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
height: 0
|
|
417
|
+
labels: [],
|
|
418
|
+
formats: {
|
|
419
|
+
onnx: {
|
|
420
|
+
url: hf("clip/mobileclip-s1/onnx/camstack-mobileclip-s1-text.onnx"),
|
|
421
|
+
sizeMB: 61,
|
|
422
|
+
files: [TOKENIZER_FILE]
|
|
454
423
|
},
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
424
|
+
openvino: ovFormat(hf("clip/mobileclip-s1/openvino/camstack-mobileclip-s1-text.xml"), 121)
|
|
425
|
+
}
|
|
426
|
+
}, {
|
|
427
|
+
id: "mobileclip-s2-text",
|
|
428
|
+
name: "MobileCLIP S2 Text Encoder",
|
|
429
|
+
description: "Text encoder for MobileCLIP S2, 512-dim, int8 quantized (61 MB)",
|
|
430
|
+
inputSize: {
|
|
431
|
+
width: 0,
|
|
432
|
+
height: 0
|
|
464
433
|
},
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
height: 0
|
|
434
|
+
labels: [],
|
|
435
|
+
formats: {
|
|
436
|
+
onnx: {
|
|
437
|
+
url: hf("clip/mobileclip-s2/onnx/camstack-mobileclip-s2-text.onnx"),
|
|
438
|
+
sizeMB: 61,
|
|
439
|
+
files: [TOKENIZER_FILE]
|
|
472
440
|
},
|
|
473
|
-
|
|
474
|
-
formats: {
|
|
475
|
-
onnx: {
|
|
476
|
-
url: hf("clip/mobileclip-s2/onnx/camstack-mobileclip-s2-text.onnx"),
|
|
477
|
-
sizeMB: 35,
|
|
478
|
-
files: [TOKENIZER_FILE]
|
|
479
|
-
},
|
|
480
|
-
openvino: ovFormat(hf("clip/mobileclip-s2/openvino/camstack-mobileclip-s2-text.xml"), 22)
|
|
481
|
-
}
|
|
441
|
+
openvino: ovFormat(hf("clip/mobileclip-s2/openvino/camstack-mobileclip-s2-text.xml"), 121)
|
|
482
442
|
}
|
|
483
|
-
];
|
|
443
|
+
}];
|
|
484
444
|
//#endregion
|
|
485
445
|
//#region src/embedding-encoder/shared/noop-logger.ts
|
|
486
446
|
var noop = () => {};
|
|
@@ -757,14 +717,12 @@ var PythonTextEncoderEngine = class {
|
|
|
757
717
|
};
|
|
758
718
|
//#endregion
|
|
759
719
|
//#region src/embedding-encoder/addon/clip-models.ts
|
|
720
|
+
/**
|
|
721
|
+
* `mobileclip-s0` was retired on 2026-08-21 (measured worst of the family on
|
|
722
|
+
* real fleet crops). A stored config still naming it resolves to the default
|
|
723
|
+
* via {@link getModelMeta}'s fallback — never to a dangling id.
|
|
724
|
+
*/
|
|
760
725
|
var CLIP_MODEL_META = {
|
|
761
|
-
"mobileclip-s0": {
|
|
762
|
-
imageModelId: "mobileclip-s0",
|
|
763
|
-
textModelId: "mobileclip-s0-text",
|
|
764
|
-
embeddingDim: 512,
|
|
765
|
-
inputSize: 256,
|
|
766
|
-
tokenizerType: "clip"
|
|
767
|
-
},
|
|
768
726
|
"mobileclip-s1": {
|
|
769
727
|
imageModelId: "mobileclip-s1",
|
|
770
728
|
textModelId: "mobileclip-s1-text",
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.27",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.95",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.65",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.95",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/sdk": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.27",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.65",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|