camstack 1.2.179 → 1.2.180
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.
|
@@ -17735,6 +17735,57 @@ var CLIP_SEARCH_STRICTNESS = [
|
|
|
17735
17735
|
"strict"
|
|
17736
17736
|
];
|
|
17737
17737
|
var ClipSearchStrictnessSchema = external_exports.enum(CLIP_SEARCH_STRICTNESS);
|
|
17738
|
+
var MACRO_LABELS = [
|
|
17739
|
+
{
|
|
17740
|
+
id: "person",
|
|
17741
|
+
name: "Person"
|
|
17742
|
+
},
|
|
17743
|
+
{
|
|
17744
|
+
id: "vehicle",
|
|
17745
|
+
name: "Vehicle"
|
|
17746
|
+
},
|
|
17747
|
+
{
|
|
17748
|
+
id: "animal",
|
|
17749
|
+
name: "Animal"
|
|
17750
|
+
},
|
|
17751
|
+
{
|
|
17752
|
+
id: "package",
|
|
17753
|
+
name: "Package"
|
|
17754
|
+
}
|
|
17755
|
+
];
|
|
17756
|
+
var DETECTION_MACRO_CLASSES = new Set(MACRO_LABELS.map((l) => l.id));
|
|
17757
|
+
var COCO_TO_MACRO = {
|
|
17758
|
+
mapping: {
|
|
17759
|
+
person: "person",
|
|
17760
|
+
bicycle: "vehicle",
|
|
17761
|
+
car: "vehicle",
|
|
17762
|
+
motorcycle: "vehicle",
|
|
17763
|
+
airplane: "vehicle",
|
|
17764
|
+
bus: "vehicle",
|
|
17765
|
+
train: "vehicle",
|
|
17766
|
+
truck: "vehicle",
|
|
17767
|
+
boat: "vehicle",
|
|
17768
|
+
bird: "animal",
|
|
17769
|
+
cat: "animal",
|
|
17770
|
+
dog: "animal",
|
|
17771
|
+
horse: "animal",
|
|
17772
|
+
sheep: "animal",
|
|
17773
|
+
cow: "animal",
|
|
17774
|
+
elephant: "animal",
|
|
17775
|
+
bear: "animal",
|
|
17776
|
+
zebra: "animal",
|
|
17777
|
+
giraffe: "animal",
|
|
17778
|
+
suitcase: "package",
|
|
17779
|
+
backpack: "package",
|
|
17780
|
+
handbag: "package"
|
|
17781
|
+
},
|
|
17782
|
+
preserveOriginal: false
|
|
17783
|
+
};
|
|
17784
|
+
var FILLABLE_STEP_IDS = [
|
|
17785
|
+
"animal-classifier",
|
|
17786
|
+
"vehicle-classifier",
|
|
17787
|
+
"package-detection"
|
|
17788
|
+
];
|
|
17738
17789
|
var MODEL_FORMATS = [
|
|
17739
17790
|
"onnx",
|
|
17740
17791
|
"coreml",
|
|
@@ -17828,6 +17879,11 @@ var ModelLicenseRecordSchema = external_exports.object({
|
|
|
17828
17879
|
nonCommercial: external_exports.boolean().optional()
|
|
17829
17880
|
});
|
|
17830
17881
|
var ModelLicenseSchema = external_exports.preprocess((value) => typeof value === "string" ? { weights: value } : value, ModelLicenseRecordSchema);
|
|
17882
|
+
var FillsClassifierEffectSchema = external_exports.object({
|
|
17883
|
+
stepId: external_exports.enum(FILLABLE_STEP_IDS),
|
|
17884
|
+
labelToEffect: external_exports.record(external_exports.string(), external_exports.string()),
|
|
17885
|
+
uncovered: external_exports.array(external_exports.string()).readonly()
|
|
17886
|
+
});
|
|
17831
17887
|
var ModelCatalogEntrySchema = external_exports.object({
|
|
17832
17888
|
id: external_exports.string(),
|
|
17833
17889
|
name: external_exports.string(),
|
|
@@ -17954,6 +18010,16 @@ var ModelCatalogEntrySchema = external_exports.object({
|
|
|
17954
18010
|
*/
|
|
17955
18011
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
17956
18012
|
/**
|
|
18013
|
+
* The pipeline steps this ROOT detector already does the work of (D715):
|
|
18014
|
+
* its labels name the effect the step exists to produce (`deer` for
|
|
18015
|
+
* `animal-classifier`, `package` for `package-detection`). Derived from the
|
|
18016
|
+
* labelmap by `deriveClassifierFills`, never hand-written; a COCO model
|
|
18017
|
+
* declares none. Whether a declaration is honoured is the step's own
|
|
18018
|
+
* `labelLink` policy (`resolveLabelLink`). `labelToEffect` values are in
|
|
18019
|
+
* `FILLABLE_STEP_VOCABULARIES` (guard `check-label-link-vocabulary`).
|
|
18020
|
+
*/
|
|
18021
|
+
fillsClassifierEffects: external_exports.array(FillsClassifierEffectSchema).readonly().optional(),
|
|
18022
|
+
/**
|
|
17957
18023
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
17958
18024
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
17959
18025
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -25831,52 +25897,6 @@ var notificationOutputCapability = {
|
|
|
25831
25897
|
})
|
|
25832
25898
|
}
|
|
25833
25899
|
};
|
|
25834
|
-
var MACRO_LABELS = [
|
|
25835
|
-
{
|
|
25836
|
-
id: "person",
|
|
25837
|
-
name: "Person"
|
|
25838
|
-
},
|
|
25839
|
-
{
|
|
25840
|
-
id: "vehicle",
|
|
25841
|
-
name: "Vehicle"
|
|
25842
|
-
},
|
|
25843
|
-
{
|
|
25844
|
-
id: "animal",
|
|
25845
|
-
name: "Animal"
|
|
25846
|
-
},
|
|
25847
|
-
{
|
|
25848
|
-
id: "package",
|
|
25849
|
-
name: "Package"
|
|
25850
|
-
}
|
|
25851
|
-
];
|
|
25852
|
-
var DETECTION_MACRO_CLASSES = new Set(MACRO_LABELS.map((l) => l.id));
|
|
25853
|
-
var COCO_TO_MACRO = {
|
|
25854
|
-
mapping: {
|
|
25855
|
-
person: "person",
|
|
25856
|
-
bicycle: "vehicle",
|
|
25857
|
-
car: "vehicle",
|
|
25858
|
-
motorcycle: "vehicle",
|
|
25859
|
-
airplane: "vehicle",
|
|
25860
|
-
bus: "vehicle",
|
|
25861
|
-
train: "vehicle",
|
|
25862
|
-
truck: "vehicle",
|
|
25863
|
-
boat: "vehicle",
|
|
25864
|
-
bird: "animal",
|
|
25865
|
-
cat: "animal",
|
|
25866
|
-
dog: "animal",
|
|
25867
|
-
horse: "animal",
|
|
25868
|
-
sheep: "animal",
|
|
25869
|
-
cow: "animal",
|
|
25870
|
-
elephant: "animal",
|
|
25871
|
-
bear: "animal",
|
|
25872
|
-
zebra: "animal",
|
|
25873
|
-
giraffe: "animal",
|
|
25874
|
-
suitcase: "package",
|
|
25875
|
-
backpack: "package",
|
|
25876
|
-
handbag: "package"
|
|
25877
|
-
},
|
|
25878
|
-
preserveOriginal: false
|
|
25879
|
-
};
|
|
25880
25900
|
var AUDIO_MACRO_LABELS = [
|
|
25881
25901
|
{
|
|
25882
25902
|
id: "speech",
|
|
@@ -30853,7 +30873,8 @@ var PipelineModelOptionSchema = external_exports.object({
|
|
|
30853
30873
|
group: ModelVariantGroupSchema.optional(),
|
|
30854
30874
|
legacy: external_exports.boolean().optional(),
|
|
30855
30875
|
provider: ModelProviderIdSchema.optional(),
|
|
30856
|
-
defaultConfidence: external_exports.number().optional()
|
|
30876
|
+
defaultConfidence: external_exports.number().optional(),
|
|
30877
|
+
fillsClassifierEffects: external_exports.array(FillsClassifierEffectSchema).readonly().optional()
|
|
30857
30878
|
});
|
|
30858
30879
|
var ConfigFieldBridge = external_exports.custom();
|
|
30859
30880
|
var PipelineAddonSchemaSchema = external_exports.object({
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FFMPEG_PATH_ENV,
|
|
4
4
|
runDiscover
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5IZ6XS4J.js";
|
|
6
6
|
import "./chunk-LMMQX4CK.js";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
@@ -39,7 +39,7 @@ async function runServe(args) {
|
|
|
39
39
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
40
40
|
};
|
|
41
41
|
Object.assign(process.env, buildServeEnv(opts));
|
|
42
|
-
await import("./launcher-
|
|
42
|
+
await import("./launcher-QBPVDG54.js");
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// src/commands/agent.ts
|
|
@@ -84,7 +84,7 @@ async function runAgent(args) {
|
|
|
84
84
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
85
85
|
};
|
|
86
86
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
87
|
-
await import("./launcher-
|
|
87
|
+
await import("./launcher-QBPVDG54.js");
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// src/commands/setup.ts
|
|
@@ -100,8 +100,6 @@ function describeFfmpegProvisioning(env) {
|
|
|
100
100
|
return "ffmpeg: the pinned build is downloaded by each node on first start \u2014 nothing to install";
|
|
101
101
|
}
|
|
102
102
|
function getDefaultDataPath() {
|
|
103
|
-
const root = process.env.CAMSTACK_ROOT;
|
|
104
|
-
if (root) return path.join(root, "data");
|
|
105
103
|
return path.join(process.cwd(), "camstack-data");
|
|
106
104
|
}
|
|
107
105
|
function runSetup(args) {
|
|
@@ -1134,7 +1132,7 @@ function isUnknown(_value) {
|
|
|
1134
1132
|
return true;
|
|
1135
1133
|
}
|
|
1136
1134
|
async function resolveServerInteractive(presetNamespace) {
|
|
1137
|
-
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-
|
|
1135
|
+
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-2RRBNIQP.js");
|
|
1138
1136
|
if (presetNamespace) {
|
|
1139
1137
|
const spinner4 = clack.spinner();
|
|
1140
1138
|
spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
|