@camstack/types 1.0.7 → 1.1.0
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/types/models.d.ts +11 -3
- package/package.json +1 -1
package/dist/types/models.d.ts
CHANGED
|
@@ -8,9 +8,17 @@ export interface ModelFormatEntry {
|
|
|
8
8
|
/** Whether this format is a directory bundle (e.g., .mlpackage) rather than a single file */
|
|
9
9
|
readonly isDirectory?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Multi-file format payload.
|
|
12
|
+
*
|
|
13
|
+
* - Directory formats (`isDirectory: true`, e.g. `.mlpackage`): files
|
|
14
|
+
* relative to the directory root — the downloader fetches each from
|
|
15
|
+
* `{url}/{file}` into `{modelDir}/{file}`. If omitted, it probes the
|
|
16
|
+
* HuggingFace API (slower).
|
|
17
|
+
* - Single-file formats (no `isDirectory`, e.g. OpenVINO IR): sibling
|
|
18
|
+
* files fetched from the SAME remote directory as `url` and stored flat
|
|
19
|
+
* alongside the main file — e.g. `['camstack-yolov9t.bin']` for the IR
|
|
20
|
+
* weights next to `camstack-yolov9t.xml`. Keeps the format convention in
|
|
21
|
+
* the catalog data instead of the downloader code.
|
|
14
22
|
*/
|
|
15
23
|
readonly files?: readonly string[];
|
|
16
24
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|