@melite/models-wd14 0.1.4-alpha → 0.2.0-alpha

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/README.md ADDED
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: WD14 Tagger family — booru keyword tagging of images for NovelAI, Pony, and Illustrious prompt recreation, with the tag action on the ComfyUI engine.
3
+ kind: package-library
4
+ ---
5
+
6
+ # @melite/models-wd14
7
+
8
+ `@melite/models-wd14` is the model family package for the WD14 booru tagger (`form_tagger`, genre image, engine comfyui): a light ONNX lane from the WaifuDiffusion v3 lineage that reads an image and writes comma-separated Danbooru tags for NovelAI / Pony / Illustrious prompt recreation. The DECL declares the `tag` action, an eleven-checkpoint variant rail, and the required `input_image` relation. The estate boot mounts it as a Cordis plugin through `ctx.models.registerFamily` inside `ctx.effect`; the tagger card binds the action. The lane is weightless — no `lane_inputs` — and the segment is the wd14 arm of the legacy tagger lane, pinned byte-identical in `tests/action.spec.ts`.
9
+
10
+ ## Declaration
11
+
12
+ The variant rail IS the checkpoint picker: one variant per live `WD14Tagger|pysssss` model name, pinned off the engine's `object_info` — unknown names are refused at selection time, and `wd-v1-4-moat-tagger-v2` rides first as the family default (its cell carries the measured ~4 GB VRAM peak; the other backbones are unmeasured and omit the figure). Family defaults: `threshold` 0.35, `character_threshold` 0.85, empty `exclude_tags`, underscores kept, no trailing comma. The `tag` action requires `input_image` — a tagger inverts an image, and nothing to tag is a refusal. The build loads the image (or a `$`-spelled upstream tensor), runs `WD14Tagger|pysssss`, and saves the text under `<run>/tags`. First run downloads the selected checkpoint's weights.
13
+
14
+ ```
15
+ .
16
+ ./package.json
17
+ ```
18
+
19
+ ## Model Experience
20
+
21
+ ### Request context and condition
22
+
23
+ #### What the model sees
24
+
25
+ - **input_image** — required; the image to invert into tags.
26
+ - **checkpoint** — the variant-stamped backbone name (admitted, never rendered).
27
+ - **threshold / character_threshold** — the general and character confidence floors.
28
+ - **exclude_tags / replace_underscore / trailing_comma** — output shaping flags.
29
+
30
+ #### Token effect
31
+
32
+ Zero-direct token effect — the fields ride the composed ComfyUI graph; the tag text is engine output, not harness context.
33
+
34
+ #### KV Cache effect
35
+
36
+ Independent — each tagging run is its own engine request; no shared prefix.
37
+
38
+ ## Known Limitations and Deferred Work
39
+
40
+ - **Weights not provisioned** — no provisions block; the first run fetches the checkpoint itself, so an offline estate tags nothing.
41
+ - **One measured VRAM figure** — only moat carries a peak number; the rest of the rail is unmeasured by declaration.
42
+ - **Tag vocabulary** — output is Danbooru-style tags; quality on non-anime images is not verified against the running engine.
package/lib/actions.d.ts CHANGED
@@ -1,20 +1,7 @@
1
1
  import type { ComfyActionSpec } from "@melite/comfyui-card-kit";
2
- import type { LaneInputsFacts } from "@melite/comfyui-card-kit/facts";
3
- /** The closed facts shape the tag segment reads: nothing — the arm
4
- * is weightless (every wire value comes from params). */
5
- export type TagFacts = Record<string, never>;
6
- /** The gated params doc the tag segment reads (the card's schema
7
- * walk validated types and bounds — a same-process typed boundary;
8
- * the arm reads its own subset of the card's union surface). */
9
- export type TagParams = Record<string, unknown>;
10
- /** The weightless door: the family declares no lane_inputs, so
11
- * there is nothing to parse and nothing that can drift. The raw
12
- * view rides unvalidated by contract (absent ≡ {}).
13
- * @param _raw the resolved lane_inputs (empty for this family)
14
- * @returns the vacuous facts shape */
15
- export declare function parseTagFacts(_raw: LaneInputsFacts): TagFacts;
2
+ import { type WeightlessFacts, type WeightlessParams } from "@melite/comfyui-card-kit";
16
3
  /** The image prompt-inversion action: the WD14 booru interrogator —
17
4
  * LoadImage (or the wired spell), WD14Tagger|pysssss at the
18
5
  * confidence floors, SaveText under <run>/tags. */
19
- export declare const tag: ComfyActionSpec<TagParams, TagFacts>;
6
+ export declare const tag: ComfyActionSpec<WeightlessParams, WeightlessFacts>;
20
7
  //# sourceMappingURL=actions.d.ts.map
package/lib/actions.js CHANGED
@@ -1,12 +1,4 @@
1
- import { taggerSaveText } from "@melite/comfyui-card-kit";
2
- /** The weightless door: the family declares no lane_inputs, so
3
- * there is nothing to parse and nothing that can drift. The raw
4
- * view rides unvalidated by contract (absent ≡ {}).
5
- * @param _raw the resolved lane_inputs (empty for this family)
6
- * @returns the vacuous facts shape */
7
- export function parseTagFacts(_raw) {
8
- return {};
9
- }
1
+ import { taggerSaveText, parseWeightlessFacts, assertTagInput } from "@melite/comfyui-card-kit";
10
2
  /** The image prompt-inversion action: the WD14 booru interrogator —
11
3
  * LoadImage (or the wired spell), WD14Tagger|pysssss at the
12
4
  * confidence floors, SaveText under <run>/tags. */
@@ -28,12 +20,9 @@ export const tag = {
28
20
  { name: "replace_underscore", type: "boolean" },
29
21
  { name: "trailing_comma", type: "boolean" },
30
22
  ],
31
- facts: parseTagFacts,
23
+ facts: parseWeightlessFacts,
32
24
  build({ p, g, runId }) {
33
- const img = typeof p.input_image === "string" ? p.input_image : "";
34
- if (!img.trim()) {
35
- throw new Error("required param 'input_image' missing or blank on the tagger card (the tagger inverts an image; nothing to tag is a refusal)");
36
- }
25
+ const img = assertTagInput(p);
37
26
  // THE SPELLED ANCHOR (same law — the arm bypasses the loader
38
27
  // for a wired image; the card admits the spell).
39
28
  const src = img.startsWith("$") ? img : g.node("LoadImage", { image: img }).out();
package/lib/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import type { Plugin } from "@deepseek-ai/cordis";
2
- import type { ModelDecl } from "@melite/comfyui-cordis/model-contract";
2
+ import type { ModelDecl } from '@melite/comfyui-card-kit/model-contract';
3
3
  export declare const DECL: ModelDecl;
4
4
  export declare const family: Plugin;
5
- export { tag, parseTagFacts, type TagFacts, type TagParams } from "./actions.js";
5
+ export { tag } from "./actions.js";
6
+ export { parseWeightlessFacts as parseTagFacts, type WeightlessFacts as TagFacts, type WeightlessParams as TagParams } from "@melite/comfyui-card-kit";
7
+ export { family as default };
6
8
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -15,6 +15,13 @@ export const DECL = {
15
15
  },
16
16
  "genre": "image",
17
17
 
18
+ // user-provided seat(s) — the compose caller provides them. No
19
+ // variant-class rows: this family's served face exposes no
20
+ // steps+cfg pair (the census's surface-derived carve).
21
+ "required_defaults": [
22
+ { "name": "input_image", "class": "user" }
23
+ ],
24
+
18
25
  // checkpoint picker; the tagger schema declares no weights knob):
19
26
  // one variant per live WD14Tagger|pysssss `model` name
20
27
  // (live-pinned off the engine's object_info — the node refuses
@@ -25,6 +32,174 @@ export const DECL = {
25
32
  // a fresh card lands here). vram_peak_gb rides ONLY moat's cell
26
33
  // (the family's measured light-ONNX figure); unmeasured
27
34
  // backbones omit it (null = unknown, never a guessed number).
35
+
36
+ // DOES models without links go all green?"): one onnx+csv
37
+ // pair per variant, single-file rows off the node's OWN upstream
38
+ // map (pysssss.json — SmilingWolf/<repo>), the csv digests
39
+ // estate-minted off the fetched bytes (git storage carries no LFS
40
+ // oid). The folder is the identity mount (store wd14_tagger/, the
41
+
42
+ // stale wd14/ mapping with the bytes' actual landing) — the flat
43
+ // renamed pair the node's loader reads.
44
+ "provisions": [
45
+ {
46
+ "name": "wd-v1-4-moat-tagger-v2.onnx",
47
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2/resolve/main/model.onnx",
48
+ "folder": "wd14_tagger",
49
+ "sha256": "b8cef913be4c9e8d93f9f903e74271416502ce0b4b04df0ff1e2f00df488aa03",
50
+ "size_bytes": 326197340,
51
+ },
52
+ {
53
+ "name": "wd-v1-4-moat-tagger-v2.csv",
54
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2/resolve/main/selected_tags.csv",
55
+ "folder": "wd14_tagger",
56
+ "sha256": "8c8750600db36233a1b274ac88bd46289e588b338218c2e4c62bbc9f2b516368",
57
+ "size_bytes": 253906,
58
+ },
59
+ {
60
+ "name": "wd-v1-4-convnext-tagger-v2.onnx",
61
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2/resolve/main/model.onnx",
62
+ "folder": "wd14_tagger",
63
+ "sha256": "71f06ecb7b9df81d8f271da4d43997ea2ed363cdac29aa64fcb256c9631e656a",
64
+ "size_bytes": 387820405,
65
+ },
66
+ {
67
+ "name": "wd-v1-4-convnext-tagger-v2.csv",
68
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2/resolve/main/selected_tags.csv",
69
+ "folder": "wd14_tagger",
70
+ "sha256": "8c8750600db36233a1b274ac88bd46289e588b338218c2e4c62bbc9f2b516368",
71
+ "size_bytes": 253906,
72
+ },
73
+ {
74
+ "name": "wd-v1-4-convnextv2-tagger-v2.onnx",
75
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2/resolve/main/model.onnx",
76
+ "folder": "wd14_tagger",
77
+ "sha256": "e91daa19cd9e8725125b7d70702d1560855fb687f8d8c4218eddaa821f41834a",
78
+ "size_bytes": 388479878,
79
+ },
80
+ {
81
+ "name": "wd-v1-4-convnextv2-tagger-v2.csv",
82
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2/resolve/main/selected_tags.csv",
83
+ "folder": "wd14_tagger",
84
+ "sha256": "8c8750600db36233a1b274ac88bd46289e588b338218c2e4c62bbc9f2b516368",
85
+ "size_bytes": 253906,
86
+ },
87
+ {
88
+ "name": "wd-v1-4-vit-tagger-v2.onnx",
89
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger-v2/resolve/main/model.onnx",
90
+ "folder": "wd14_tagger",
91
+ "sha256": "8a21cadd1f88a095094cafbffe3028c3cc3d97f4d58c54344c5994bcf48e24ac",
92
+ "size_bytes": 373287959,
93
+ },
94
+ {
95
+ "name": "wd-v1-4-vit-tagger-v2.csv",
96
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger-v2/resolve/main/selected_tags.csv",
97
+ "folder": "wd14_tagger",
98
+ "sha256": "8c8750600db36233a1b274ac88bd46289e588b338218c2e4c62bbc9f2b516368",
99
+ "size_bytes": 253906,
100
+ },
101
+ {
102
+ "name": "wd-v1-4-swinv2-tagger-v2.onnx",
103
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagger-v2/resolve/main/model.onnx",
104
+ "folder": "wd14_tagger",
105
+ "sha256": "04ec04fdf7db74b4fed7f4b52f52e04dec4dbad9e4d88d2d178f334079a29fde",
106
+ "size_bytes": 455409152,
107
+ },
108
+ {
109
+ "name": "wd-v1-4-swinv2-tagger-v2.csv",
110
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagger-v2/resolve/main/selected_tags.csv",
111
+ "folder": "wd14_tagger",
112
+ "sha256": "8c8750600db36233a1b274ac88bd46289e588b338218c2e4c62bbc9f2b516368",
113
+ "size_bytes": 253906,
114
+ },
115
+ {
116
+ "name": "wd-v1-4-convnext-tagger.onnx",
117
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger/resolve/main/model.onnx",
118
+ "folder": "wd14_tagger",
119
+ "sha256": "b7d7c9923e0056a2def0f4418df01a1274467b3da8480f146b851289257734de",
120
+ "size_bytes": 377430976,
121
+ },
122
+ {
123
+ "name": "wd-v1-4-convnext-tagger.csv",
124
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger/resolve/main/selected_tags.csv",
125
+ "folder": "wd14_tagger",
126
+ "sha256": "898dbc30bec9a5173b5531fc9b3d6058ea79182832ec4a102facc33cae7669cd",
127
+ "size_bytes": 173829,
128
+ },
129
+ {
130
+ "name": "wd-v1-4-vit-tagger.onnx",
131
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger/resolve/main/model.onnx",
132
+ "folder": "wd14_tagger",
133
+ "sha256": "22e88a3226e427998fdf669bdbd035ee7040f3229796dd66ec35b8dd90e852b5",
134
+ "size_bytes": 365487723,
135
+ },
136
+ {
137
+ "name": "wd-v1-4-vit-tagger.csv",
138
+ "url": "https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger/resolve/main/selected_tags.csv",
139
+ "folder": "wd14_tagger",
140
+ "sha256": "898dbc30bec9a5173b5531fc9b3d6058ea79182832ec4a102facc33cae7669cd",
141
+ "size_bytes": 173829,
142
+ },
143
+ {
144
+ "name": "wd-convnext-tagger-v3.onnx",
145
+ "url": "https://huggingface.co/SmilingWolf/wd-convnext-tagger-v3/resolve/main/model.onnx",
146
+ "folder": "wd14_tagger",
147
+ "sha256": "1b8a7abf13d9b8368267df47501d523789c4aeae66b2296ad98483239dfa32eb",
148
+ "size_bytes": 394990732,
149
+ },
150
+ {
151
+ "name": "wd-convnext-tagger-v3.csv",
152
+ "url": "https://huggingface.co/SmilingWolf/wd-convnext-tagger-v3/resolve/main/selected_tags.csv",
153
+ "folder": "wd14_tagger",
154
+ "sha256": "298633d94d0031d2081c0893f29c82eab7f0df00b08483ba8f29d1e979441217",
155
+ "size_bytes": 308468,
156
+ },
157
+ {
158
+ "name": "wd-swinv2-tagger-v3.onnx",
159
+ "url": "https://huggingface.co/SmilingWolf/wd-swinv2-tagger-v3/resolve/main/model.onnx",
160
+ "folder": "wd14_tagger",
161
+ "sha256": "e6774bff34d43bd49f75a47db4ef217dce701c9847b546523eb85ff6dbba1db1",
162
+ "size_bytes": 467460978,
163
+ },
164
+ {
165
+ "name": "wd-swinv2-tagger-v3.csv",
166
+ "url": "https://huggingface.co/SmilingWolf/wd-swinv2-tagger-v3/resolve/main/selected_tags.csv",
167
+ "folder": "wd14_tagger",
168
+ "sha256": "298633d94d0031d2081c0893f29c82eab7f0df00b08483ba8f29d1e979441217",
169
+ "size_bytes": 308468,
170
+ },
171
+ {
172
+ "name": "wd-vit-tagger-v3.onnx",
173
+ "url": "https://huggingface.co/SmilingWolf/wd-vit-tagger-v3/resolve/main/model.onnx",
174
+ "folder": "wd14_tagger",
175
+ "sha256": "35f23693620b668f4d53fd3c62bf65e40af739bc52c7eb0fbc49258b58d065b6",
176
+ "size_bytes": 378536310,
177
+ },
178
+ {
179
+ "name": "wd-vit-tagger-v3.csv",
180
+ "url": "https://huggingface.co/SmilingWolf/wd-vit-tagger-v3/resolve/main/selected_tags.csv",
181
+ "folder": "wd14_tagger",
182
+ "sha256": "298633d94d0031d2081c0893f29c82eab7f0df00b08483ba8f29d1e979441217",
183
+ "size_bytes": 308468,
184
+ },
185
+ {
186
+ "name": "wd-eva02-large-tagger-v3.onnx",
187
+ "url": "https://huggingface.co/SmilingWolf/wd-eva02-large-tagger-v3/resolve/main/model.onnx",
188
+ "folder": "wd14_tagger",
189
+ "sha256": "9e768793060c7939b277ccb382783e8670e8a042d29d77aa736be0c8cc898bfc",
190
+ "size_bytes": 1260435999,
191
+ },
192
+ {
193
+ "name": "wd-eva02-large-tagger-v3.csv",
194
+ "url": "https://huggingface.co/SmilingWolf/wd-eva02-large-tagger-v3/resolve/main/selected_tags.csv",
195
+ "folder": "wd14_tagger",
196
+ "sha256": "298633d94d0031d2081c0893f29c82eab7f0df00b08483ba8f29d1e979441217",
197
+ "size_bytes": 308468,
198
+ },
199
+ ],
200
+ // THE DECLARED HOME (the lane-presence cure): both backing files
201
+ // live in the wd14_tagger mount's store folder.
202
+ "lane_homes": { "onnx": "wd14", "csv": "wd14" },
28
203
  "variants": [
29
204
  {
30
205
  "id": "wd-v1-4-moat-tagger-v2",
@@ -32,6 +207,12 @@ export const DECL = {
32
207
  "group": "Variant",
33
208
  "route": "wd14",
34
209
  "resolver_defaults": { "checkpoint": "wd-v1-4-moat-tagger-v2" },
210
+
211
+ // engine-side from the wd14_tagger folder — wd-v1-4-moat-tagger-v2.onnx +
212
+ // wd-v1-4-moat-tagger-v2.csv (the node's own download pair, renamed flat).
213
+ // Declared here so the run gate probes them at press and the
214
+ // provisions rows fetch them (no more green-by-luck).
215
+ "lane_inputs": { "onnx": "wd-v1-4-moat-tagger-v2.onnx", "csv": "wd-v1-4-moat-tagger-v2.csv" },
35
216
  "cells": [
36
217
  {
37
218
  "quant": "f32",
@@ -45,6 +226,12 @@ export const DECL = {
45
226
  "label": "wd-v1-4-convnext-tagger-v2",
46
227
  "group": "Variant",
47
228
  "resolver_defaults": { "checkpoint": "wd-v1-4-convnext-tagger-v2" },
229
+
230
+ // engine-side from the wd14_tagger folder — wd-v1-4-convnext-tagger-v2.onnx +
231
+ // wd-v1-4-convnext-tagger-v2.csv (the node's own download pair, renamed flat).
232
+ // Declared here so the run gate probes them at press and the
233
+ // provisions rows fetch them (no more green-by-luck).
234
+ "lane_inputs": { "onnx": "wd-v1-4-convnext-tagger-v2.onnx", "csv": "wd-v1-4-convnext-tagger-v2.csv" },
48
235
  "cells": [{ "quant": "f32", "label": "F32" }],
49
236
  },
50
237
  {
@@ -52,6 +239,12 @@ export const DECL = {
52
239
  "label": "wd-v1-4-convnextv2-tagger-v2",
53
240
  "group": "Variant",
54
241
  "resolver_defaults": { "checkpoint": "wd-v1-4-convnextv2-tagger-v2" },
242
+
243
+ // engine-side from the wd14_tagger folder — wd-v1-4-convnextv2-tagger-v2.onnx +
244
+ // wd-v1-4-convnextv2-tagger-v2.csv (the node's own download pair, renamed flat).
245
+ // Declared here so the run gate probes them at press and the
246
+ // provisions rows fetch them (no more green-by-luck).
247
+ "lane_inputs": { "onnx": "wd-v1-4-convnextv2-tagger-v2.onnx", "csv": "wd-v1-4-convnextv2-tagger-v2.csv" },
55
248
  "cells": [{ "quant": "f32", "label": "F32" }],
56
249
  },
57
250
  {
@@ -59,6 +252,12 @@ export const DECL = {
59
252
  "label": "wd-v1-4-vit-tagger-v2",
60
253
  "group": "Variant",
61
254
  "resolver_defaults": { "checkpoint": "wd-v1-4-vit-tagger-v2" },
255
+
256
+ // engine-side from the wd14_tagger folder — wd-v1-4-vit-tagger-v2.onnx +
257
+ // wd-v1-4-vit-tagger-v2.csv (the node's own download pair, renamed flat).
258
+ // Declared here so the run gate probes them at press and the
259
+ // provisions rows fetch them (no more green-by-luck).
260
+ "lane_inputs": { "onnx": "wd-v1-4-vit-tagger-v2.onnx", "csv": "wd-v1-4-vit-tagger-v2.csv" },
62
261
  "cells": [{ "quant": "f32", "label": "F32" }],
63
262
  },
64
263
  {
@@ -66,6 +265,12 @@ export const DECL = {
66
265
  "label": "wd-v1-4-swinv2-tagger-v2",
67
266
  "group": "Variant",
68
267
  "resolver_defaults": { "checkpoint": "wd-v1-4-swinv2-tagger-v2" },
268
+
269
+ // engine-side from the wd14_tagger folder — wd-v1-4-swinv2-tagger-v2.onnx +
270
+ // wd-v1-4-swinv2-tagger-v2.csv (the node's own download pair, renamed flat).
271
+ // Declared here so the run gate probes them at press and the
272
+ // provisions rows fetch them (no more green-by-luck).
273
+ "lane_inputs": { "onnx": "wd-v1-4-swinv2-tagger-v2.onnx", "csv": "wd-v1-4-swinv2-tagger-v2.csv" },
69
274
  "cells": [{ "quant": "f32", "label": "F32" }],
70
275
  },
71
276
  {
@@ -73,6 +278,12 @@ export const DECL = {
73
278
  "label": "wd-v1-4-convnext-tagger",
74
279
  "group": "Variant",
75
280
  "resolver_defaults": { "checkpoint": "wd-v1-4-convnext-tagger" },
281
+
282
+ // engine-side from the wd14_tagger folder — wd-v1-4-convnext-tagger.onnx +
283
+ // wd-v1-4-convnext-tagger.csv (the node's own download pair, renamed flat).
284
+ // Declared here so the run gate probes them at press and the
285
+ // provisions rows fetch them (no more green-by-luck).
286
+ "lane_inputs": { "onnx": "wd-v1-4-convnext-tagger.onnx", "csv": "wd-v1-4-convnext-tagger.csv" },
76
287
  "cells": [{ "quant": "f32", "label": "F32" }],
77
288
  },
78
289
  {
@@ -80,6 +291,12 @@ export const DECL = {
80
291
  "label": "wd-v1-4-vit-tagger",
81
292
  "group": "Variant",
82
293
  "resolver_defaults": { "checkpoint": "wd-v1-4-vit-tagger" },
294
+
295
+ // engine-side from the wd14_tagger folder — wd-v1-4-vit-tagger.onnx +
296
+ // wd-v1-4-vit-tagger.csv (the node's own download pair, renamed flat).
297
+ // Declared here so the run gate probes them at press and the
298
+ // provisions rows fetch them (no more green-by-luck).
299
+ "lane_inputs": { "onnx": "wd-v1-4-vit-tagger.onnx", "csv": "wd-v1-4-vit-tagger.csv" },
83
300
  "cells": [{ "quant": "f32", "label": "F32" }],
84
301
  },
85
302
  {
@@ -87,6 +304,12 @@ export const DECL = {
87
304
  "label": "wd-convnext-tagger-v3",
88
305
  "group": "Variant",
89
306
  "resolver_defaults": { "checkpoint": "wd-convnext-tagger-v3" },
307
+
308
+ // engine-side from the wd14_tagger folder — wd-convnext-tagger-v3.onnx +
309
+ // wd-convnext-tagger-v3.csv (the node's own download pair, renamed flat).
310
+ // Declared here so the run gate probes them at press and the
311
+ // provisions rows fetch them (no more green-by-luck).
312
+ "lane_inputs": { "onnx": "wd-convnext-tagger-v3.onnx", "csv": "wd-convnext-tagger-v3.csv" },
90
313
  "cells": [{ "quant": "f32", "label": "F32" }],
91
314
  },
92
315
  {
@@ -94,6 +317,12 @@ export const DECL = {
94
317
  "label": "wd-swinv2-tagger-v3",
95
318
  "group": "Variant",
96
319
  "resolver_defaults": { "checkpoint": "wd-swinv2-tagger-v3" },
320
+
321
+ // engine-side from the wd14_tagger folder — wd-swinv2-tagger-v3.onnx +
322
+ // wd-swinv2-tagger-v3.csv (the node's own download pair, renamed flat).
323
+ // Declared here so the run gate probes them at press and the
324
+ // provisions rows fetch them (no more green-by-luck).
325
+ "lane_inputs": { "onnx": "wd-swinv2-tagger-v3.onnx", "csv": "wd-swinv2-tagger-v3.csv" },
97
326
  "cells": [{ "quant": "f32", "label": "F32" }],
98
327
  },
99
328
  {
@@ -101,6 +330,12 @@ export const DECL = {
101
330
  "label": "wd-vit-tagger-v3",
102
331
  "group": "Variant",
103
332
  "resolver_defaults": { "checkpoint": "wd-vit-tagger-v3" },
333
+
334
+ // engine-side from the wd14_tagger folder — wd-vit-tagger-v3.onnx +
335
+ // wd-vit-tagger-v3.csv (the node's own download pair, renamed flat).
336
+ // Declared here so the run gate probes them at press and the
337
+ // provisions rows fetch them (no more green-by-luck).
338
+ "lane_inputs": { "onnx": "wd-vit-tagger-v3.onnx", "csv": "wd-vit-tagger-v3.csv" },
104
339
  "cells": [{ "quant": "f32", "label": "F32" }],
105
340
  },
106
341
  {
@@ -108,6 +343,12 @@ export const DECL = {
108
343
  "label": "wd-eva02-large-tagger-v3",
109
344
  "group": "Variant",
110
345
  "resolver_defaults": { "checkpoint": "wd-eva02-large-tagger-v3" },
346
+
347
+ // engine-side from the wd14_tagger folder — wd-eva02-large-tagger-v3.onnx +
348
+ // wd-eva02-large-tagger-v3.csv (the node's own download pair, renamed flat).
349
+ // Declared here so the run gate probes them at press and the
350
+ // provisions rows fetch them (no more green-by-luck).
351
+ "lane_inputs": { "onnx": "wd-eva02-large-tagger-v3.onnx", "csv": "wd-eva02-large-tagger-v3.csv" },
111
352
  "cells": [{ "quant": "f32", "label": "F32" }],
112
353
  }
113
354
  ],
@@ -138,6 +379,15 @@ export const DECL = {
138
379
  },
139
380
  ],
140
381
  },
382
+ // THE LANE SURFACE (the z-image precedent): exactly the knobs the
383
+ // tagger card serves — the face the four tagger families share.
384
+ "params": [
385
+ "input_image",
386
+ "threshold", "character_threshold",
387
+ "exclude_tags", "replace_underscore", "trailing_comma",
388
+ "add_tag", "remove_tag",
389
+ "caption_task", "caption_type", "caption_length", "extra_option",
390
+ ],
141
391
  // THE FAMILY'S DECLARED ACTIONS (the atom vocabulary, stroke 3):
142
392
  // the tagger card binds this segment through ACTION_BINDINGS —
143
393
  // the admission gate runs the (vacuous, weightless) facts parse
@@ -151,5 +401,13 @@ export const family = {
151
401
  ctx.effect(() => ctx.models.registerFamily(DECL));
152
402
  },
153
403
  };
154
- export { tag, parseTagFacts } from "./actions.js";
404
+
405
+ // the old Tag* aliases are re-served for the family's consumers.
406
+ export { tag } from "./actions.js";
407
+ export { parseWeightlessFacts as parseTagFacts } from "@melite/comfyui-card-kit";
408
+ // The Loader-row face: DSH loads plugin rows by bare specifier and
409
+ // unwraps `exports.default ?? exports` (vendor/cordis_plugins/loader
410
+ // unwrapExports) — the default export IS the row-loadable plugin. The
411
+ // named `family` stays the library face (engine loadFamilies).
412
+ export { family as default };
155
413
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@melite/models-wd14",
3
- "version": "0.1.4-alpha",
4
- "license": "SSPL-1.0",
3
+ "version": "0.2.0-alpha",
4
+ "license": "AGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -11,13 +11,12 @@
11
11
  "./package.json": "./package.json"
12
12
  },
13
13
  "dependencies": {
14
- "@melite/comfyui-cordis": "0.1.4-alpha",
15
- "@melite/comfyui-card-kit": "0.1.4-alpha"
14
+ "@melite/comfyui-card-kit": "0.2.0-alpha"
16
15
  },
17
16
  "devDependencies": {
18
17
  "@types/node": "^22.20.0",
19
18
  "typescript": "^5.9.3",
20
- "@deepseek-ai/cordis": "^4.0.4"
19
+ "@deepseek-ai/cordis": "^4.0.5"
21
20
  },
22
21
  "files": [
23
22
  "lib/index.js",
@@ -25,7 +24,7 @@
25
24
  "lib/**/*.d.ts"
26
25
  ],
27
26
  "peerDependencies": {
28
- "@deepseek-ai/cordis": "^4.0.4"
27
+ "@deepseek-ai/cordis": "^4.0.5"
29
28
  },
30
29
  "scripts": {
31
30
  "build": "tsc -p tsconfig.build.json",