@camstack/types 1.2.256 → 1.2.258

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.
@@ -237,6 +237,7 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
237
237
  }>>;
238
238
  inputNormalization: z.ZodOptional<z.ZodEnum<{
239
239
  none: "none";
240
+ scrfd: "scrfd";
240
241
  "zero-one": "zero-one";
241
242
  imagenet: "imagenet";
242
243
  }>>;
@@ -319,7 +320,7 @@ export interface CustomModelMetadata {
319
320
  readonly labels: readonly LabelDefinition[];
320
321
  readonly classMap?: ClassMapDefinition;
321
322
  readonly inputLayout?: 'nchw' | 'nhwc';
322
- readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none';
323
+ readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none' | 'scrfd';
323
324
  readonly outputFormat: ModelOutputFormat;
324
325
  }
325
326
  export declare const ConvertTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -352,6 +353,7 @@ export declare const ModelConvertMetadataSchema: z.ZodObject<{
352
353
  }>>;
353
354
  inputNormalization: z.ZodOptional<z.ZodEnum<{
354
355
  none: "none";
356
+ scrfd: "scrfd";
355
357
  "zero-one": "zero-one";
356
358
  imagenet: "imagenet";
357
359
  }>>;
@@ -482,6 +484,7 @@ export declare const ConvertResultSchema: z.ZodObject<{
482
484
  }>>;
483
485
  inputNormalization: z.ZodOptional<z.ZodEnum<{
484
486
  none: "none";
487
+ scrfd: "scrfd";
485
488
  "zero-one": "zero-one";
486
489
  imagenet: "imagenet";
487
490
  }>>;
@@ -232,9 +232,12 @@ export interface PoolModelConfig {
232
232
  * its own scale). `'imagenet'` ⇒ additionally subtract the ImageNet
233
233
  * mean/std per channel — required by the EfficientNet/MobileNetV3 animal +
234
234
  * vehicle classifiers (their `labels.json` declares `normalize: imagenet`).
235
+ * `'scrfd'` ⇒ InsightFace's SCRFD input contract, `(x - 127.5) / 128`
236
+ * (upstream `insightface/model_zoo/scrfd.py`) — required by the
237
+ * `scrfd-2.5g` catalog entry (2026-09-26 model-replacement spike, §2.4-2).
235
238
  * Threaded from `ModelCatalogEntry.inputNormalization`.
236
239
  */
237
- readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none';
240
+ readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none' | 'scrfd';
238
241
  /**
239
242
  * The model's output is ALREADY a softmax probability distribution (softmax
240
243
  * baked into the graph). When true the `softmax` postprocessor skips its own
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.256",
3
+ "version": "1.2.258",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",