rig-parts 2.72.0 → 2.73.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/cli.ts +31 -10
- package/docs/AUTHORING.md +16 -11
- package/docs/STABILITY.md +1 -1
- package/package.json +1 -1
- package/src/config.ts +4 -4
package/cli.ts
CHANGED
|
@@ -946,9 +946,10 @@ usage:
|
|
|
946
946
|
--timeout s), and writes <out> only after the layer reader accepts what
|
|
947
947
|
came back.
|
|
948
948
|
--lama turns the wrapper's LaMa inpainting on and --nf4 its nf4
|
|
949
|
-
quantisation; both are off unless given.
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
quantisation; both are off unless given. Without --config, resolution, steps,
|
|
950
|
+
seed and offload default to 1024, 30, 42 and false; with --config, explicit
|
|
951
|
+
flags override config.seethrough, and an omitted steps, seed or offload with
|
|
952
|
+
no matching flag is refused (CONFIG_FIELD_PRESENT). The resolved resolution must be an integer of at
|
|
952
953
|
least 64, including config values. --no-offload overrides a config's true; it cannot
|
|
953
954
|
be combined with --offload. Each value prints its source. No config is
|
|
954
955
|
discovered automatically: give --config <config.json> to use its settings.
|
|
@@ -2511,17 +2512,32 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2511
2512
|
const depthRun = v.get('--depth-run');
|
|
2512
2513
|
if (sub === 'seethrough' && depthConfig !== undefined && depthRun !== 'full' && depthRun !== 'head') return usage('active config.depth requires --depth-run <full|head>; the source run is not inferred');
|
|
2513
2514
|
if (sub === 'seethrough' && depthConfig === undefined && depthRun !== undefined) return usage('--depth-run requires --config with an explicit depth block');
|
|
2514
|
-
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2515
|
-
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2516
2515
|
if (sub === 'seethrough') {
|
|
2517
2516
|
const image = v.get('--image');
|
|
2518
2517
|
if (image === undefined) return usage('comfy seethrough needs --image <png>');
|
|
2519
2518
|
const resolution = intFlag(v, '--resolution', early?.seethrough.resolution ?? 1024, 64, 'config.seethrough.resolution');
|
|
2520
|
-
const steps = intFlag(v, '--steps',
|
|
2521
|
-
const seed = intFlag(v, '--seed',
|
|
2519
|
+
const steps = v.has('--steps') || early === undefined ? intFlag(v, '--steps', 30, 1) : early.seethrough.steps;
|
|
2520
|
+
const seed = v.has('--seed') || early === undefined ? intFlag(v, '--seed', 42, 0) : early.seethrough.seed;
|
|
2522
2521
|
for (const x of [resolution, steps, seed]) if (typeof x === 'string') return usage(x);
|
|
2523
2522
|
const prefix = v.get('--prefix') ?? 'spine_parts';
|
|
2524
2523
|
if (!/^[A-Za-z0-9_-]+$/.test(prefix)) return usage(`--prefix ${prefix} is not letters, digits, "_" and "-"`);
|
|
2524
|
+
const cliOffload = on.has('--offload') || on.has('--no-offload');
|
|
2525
|
+
if (early !== undefined) {
|
|
2526
|
+
const missing: Problem[] = [];
|
|
2527
|
+
if (!v.has('--steps') && early.seethrough.steps === undefined) {
|
|
2528
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.steps', detail: 'is absent and required by comfy seethrough; set config.seethrough.steps or pass --steps <n>' });
|
|
2529
|
+
}
|
|
2530
|
+
if (!v.has('--seed') && early.seethrough.seed === undefined) {
|
|
2531
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.seed', detail: 'is absent and required by comfy seethrough; set config.seethrough.seed or pass --seed <n>' });
|
|
2532
|
+
}
|
|
2533
|
+
if (!cliOffload && early.seethrough.offload === undefined) {
|
|
2534
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.offload', detail: 'is absent and required by comfy seethrough; set config.seethrough.offload or pass --offload or --no-offload' });
|
|
2535
|
+
}
|
|
2536
|
+
if (missing.length > 0) throw new PartsError(missing);
|
|
2537
|
+
}
|
|
2538
|
+
const offload = on.has('--offload') ? true : on.has('--no-offload') ? false : (early?.seethrough.offload ?? false);
|
|
2539
|
+
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2540
|
+
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2525
2541
|
const run = {
|
|
2526
2542
|
image,
|
|
2527
2543
|
out,
|
|
@@ -2529,7 +2545,7 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2529
2545
|
resolution: resolution as number,
|
|
2530
2546
|
steps: steps as number,
|
|
2531
2547
|
seed: seed as number,
|
|
2532
|
-
offload
|
|
2548
|
+
offload,
|
|
2533
2549
|
lama: on.has('--lama'),
|
|
2534
2550
|
quant: on.has('--nf4') ? ('nf4' as const) : ('none' as const),
|
|
2535
2551
|
wait: wait as number,
|
|
@@ -2537,8 +2553,11 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2537
2553
|
...(depthConfig === undefined ? {} : { depth: { config: depthConfig, run: depthRun as 'full' | 'head', base: dirname(resolve(configPath as string)) } }),
|
|
2538
2554
|
};
|
|
2539
2555
|
console.log(`rig-parts comfy seethrough: ${image} -> ${out}`);
|
|
2540
|
-
const source = (key: 'resolution' | 'steps' | 'seed' | 'offload'): string =>
|
|
2541
|
-
v.has(`--${key}`) || (key === 'offload' &&
|
|
2556
|
+
const source = (key: 'resolution' | 'steps' | 'seed' | 'offload'): string => {
|
|
2557
|
+
if (v.has(`--${key}`) || (key === 'offload' && cliOffload)) return 'cli';
|
|
2558
|
+
if (early !== undefined && Object.hasOwn(early.seethrough, key) && early.seethrough[key] !== undefined) return `config.seethrough.${key}`;
|
|
2559
|
+
return 'default';
|
|
2560
|
+
};
|
|
2542
2561
|
console.log(` resolution ${run.resolution} (source=${source('resolution')}), steps ${run.steps} (source=${source('steps')}), seed ${run.seed} (source=${source('seed')}), offload ${run.offload} (source=${source('offload')}); lama ${run.lama}, quant ${run.quant}; wait <= ${run.wait} s, timeout ${run.timeout} s`);
|
|
2543
2562
|
if (early === undefined) console.log(' no config loaded; give --config <config.json> to use config.seethrough settings; explicit CLI flags override them');
|
|
2544
2563
|
const r = await runSeeThrough(client, run, (l) => console.log(l));
|
|
@@ -2546,6 +2565,8 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2546
2565
|
console.log(` wrote ${join(out, 'layers.json')}, meta.json, parts/ (${r.layers.length} PNG) and previews/ (${r.previews.length} PNG); GPU job ended`);
|
|
2547
2566
|
return EXIT_OK;
|
|
2548
2567
|
}
|
|
2568
|
+
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2569
|
+
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2549
2570
|
if (cfg === null) return usage('comfy paint needs --config <config.json>');
|
|
2550
2571
|
const seeds = intFlag(v, '--seeds', 1, 1);
|
|
2551
2572
|
if (typeof seeds === 'string') return usage(seeds);
|
package/docs/AUTHORING.md
CHANGED
|
@@ -174,7 +174,7 @@ read by no CPU stage).
|
|
|
174
174
|
| `generation.*` | the optional `comfy` adapter only; no CPU stage | recorded: checkpoint, LoRAs, sampler, prompt parts, `latent`, `seed`, `control` |
|
|
175
175
|
| `generation.control.skeleton` | `comfy paint` — the OpenPose control image, drawn at `latent` | **authored**: a built-in standing pose, `"stand_sides"` or `"stand_clasp"`, or (issue #198) any other string, read as a path relative to the config file's directory to a pose file `{"width": W, "height": H, "points": {"nose": [x, y], "neck": [x, y], …}}` — `width` x `height` is the canvas and must be `generation.latent` (the points are not scaled; `CONFIG_POSE_CANVAS`), and `points` holds the 18 body-18 keypoints of `src/skeleton.ts` by name (`nose`, `neck`, `r_shoulder`, `r_elbow`, `r_wrist`, `l_shoulder`, `l_elbow`, `l_wrist`, `r_hip`, `r_knee`, `r_ankle`, `l_hip`, `l_knee`, `l_ankle`, `r_eye`, `l_eye`, `r_ear`, `l_ear`; `r`/`l` the subject's sides), each `[x, y]` in canvas px, x right, y down, `0 <= x <= W`, `0 <= y <= H`. The image is drawn from the file exactly as from a built-in (same renderer, same size), written as `control_pose-<first 12 hex of its sha256>.png`. A pose file carries no words, so `generation.pose` is required beside it (`CONFIG_FIELD_PRESENT`). The file is read wherever the config is read from a path, every problem at once: no such file — a misspelt built-in lands here too — or one that cannot be read (`CONFIG_FILE_PRESENT`), not JSON (`CONFIG_IS_JSON`), not an object, a size that is not a whole positive px count, a point that is not two numbers (`CONFIG_FIELD_TYPE`), a key besides the three (`CONFIG_KEY_KNOWN`) or written twice (`CONFIG_KEY_UNIQUE`), `points` holding other than the 18 names (`CONFIG_POSE_KEYPOINTS`, with the count found and required), a point off the canvas (`CONFIG_POSE_IN_CANVAS`, naming the point and the canvas size) |
|
|
176
176
|
| `seethrough.resolution` | assemble — each run's canvas must be `resolution` square (`ASSEMBLE_RUN_CANVAS`); with one run (no `--head`, issue #366) the file may be smaller on either side, and is padded to the `resolution` square, centred | recorded from the See-through runs; 1024 in both examples. With one run it is the square the file is read on: at least the file's longer side (`ASSEMBLE_RUN_CANVAS` otherwise), and nothing a part records depends on how much larger |
|
|
177
|
-
| `seethrough.steps`, `.seed`, `.offload` | `comfy seethrough --config` | run inputs when `--config <config.json>` is given
|
|
177
|
+
| `seethrough.steps`, `.seed`, `.offload` | `comfy seethrough --config` only; no CPU stage | **optional** (issue #1672): See-through run inputs (`steps` integer `>= 1`, `seed` integer `>= 0`, `offload` boolean; `CONFIG_FIELD_TYPE` when malformed). Omitted on an authored layered-file route (§4, *For artists*), where See-through never runs. When `--config <config.json>` is given to `comfy seethrough`, explicit `--steps`, `--seed` and `--offload` / `--no-offload` override them, and an omitted field with no matching flag is refused (`CONFIG_FIELD_PRESENT`) |
|
|
178
178
|
| `seethrough.head_box` | inputs (cuts the head image there; optional at the first call); assemble — where the head run sits on the painting | **proposed** by `propose --head-box` from the full run, square, source pixels, shifted inside the painting when needed; the head run must then be fed exactly that crop. With one run (no `--head`, issue #359: an artist's own file, §4 *For artists*) it is left out — there is no crop to place — and a config that sets it is refused (`ASSEMBLE_SINGLE_RUN_HEAD_BOX`) |
|
|
179
179
|
| `seethrough.arm_split` | assemble, `assemble --propose-plan` — separates a single full-run `handwear-r` or `handwear-l` layer that holds both overlapping arms into both arm tags | **authored**, optional (issue #439): `{x?: number, line?: [[x, y], …], order: ["handwear-r", "handwear-l"] \| ["handwear-l", "handwear-r"]}` in `seethrough.resolution` full-run pixels. Exactly one of `x` (image column, `0 <= x <= resolution`) or `line` (a polyline of two or more `[x, y]` points in `[0, resolution]`, interpolated in x along y and clamped above/below its endpoints) is required (`CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE`), and `order` is `[back_tag, front_tag]`, the draw order of the two separated arm layers (`CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE`). Pixels at `< splitX(y)` go to `handwear-r` (image left, the subject's right arm) and pixels at `>= splitX(y)` go to `handwear-l` (image right, the subject's left arm). A split line that cuts a horizontal opaque run of the arm layer into more than two segments is refused (`ASSEMBLE_ARM_SPLIT_CUTS_ARM`). Without the declaration, when one arm layer's 8-connected component reaches both wrists under `propose --keypoints`, `propose` emits an `overlapping-arms` `LINT` naming the part, both wrists and `seethrough.arm_split`; absent, no byte of any output moves |
|
|
180
180
|
| `assemble.seam` | assemble, build | **authored**, optional `"near-white"` or `"silhouette"` (issue #905). An explicit `--seam` overrides the config; otherwise this field overrides the existing `near-white` default. An invalid value is `CONFIG_FIELD_TYPE` at `config.assemble.seam`, including when a CLI override is given. Absent, existing build bytes are unchanged. |
|
|
@@ -4320,15 +4320,17 @@ early loader does not read it.
|
|
|
4320
4320
|
| loader | steps | requires | the step also refuses without |
|
|
4321
4321
|
| --- | --- | --- | --- |
|
|
4322
4322
|
| `paint` | 0 `comfy paint` | `key`, `generation` | — |
|
|
4323
|
-
| `layers` | 1 and 4 `inputs`, 6 `assemble --propose-plan` | `key`, `seethrough`, `assemble.rig_scale` | `seethrough.head_box`, for `--propose-plan`
|
|
4324
|
-
| `assemble` | 7 `assemble` | `key`, `seethrough`, `assemble.rig_scale`, `assemble.plan` | `seethrough.head_box` (`ASSEMBLE_FIELD_PRESENT`) |
|
|
4323
|
+
| `layers` | 1 and 4 `inputs`, `comfy seethrough --config`, 6 `assemble --propose-plan` | `key`, `seethrough`, `assemble.rig_scale` | `seethrough.head_box`, for two-run `--propose-plan` (`ASSEMBLE_FIELD_PRESENT`); `seethrough.steps`, `.seed`, `.offload` (or CLI flags), for `comfy seethrough --config` (`CONFIG_FIELD_PRESENT`) |
|
|
4324
|
+
| `assemble` | 7 `assemble` | `key`, `seethrough`, `assemble.rig_scale`, `assemble.plan` | `seethrough.head_box` when `--head` is given (`ASSEMBLE_FIELD_PRESENT`); on the authored layered-file route (no `--head`), `seethrough: { "resolution": N }` |
|
|
4325
4325
|
| `full` | 8 `propose --from-config`, `propose --compare`, `compare` (a side that states a `key`), `rig`, 9 `build` | `key`, `assemble.rig_scale`, `assemble.plan`, `bones`, `meshes`, `regions`, `motion` | for `build`, the `assemble` row's too: its assemble stage reads through that loader after this one |
|
|
4326
4326
|
| `cloth` | 8 `propose --cloth` (issue #364) | `key`, `cloth` | every other key must still be one a config knows; only `cloth` is vouched for. Every other loader vouches for `cloth` too when it is present |
|
|
4327
4327
|
|
|
4328
|
-
|
|
4329
|
-
the
|
|
4330
|
-
`
|
|
4331
|
-
|
|
4328
|
+
Inside `seethrough`, only `resolution` is required by the loaders, so a config for
|
|
4329
|
+
the authored layered-file route (*For artists* below) holds
|
|
4330
|
+
`seethrough: { "resolution": N }`. A missing field is `CONFIG_FIELD_PRESENT` naming
|
|
4331
|
+
it; a missing `generation` names the fields the block holds, and a missing
|
|
4332
|
+
`assemble.plan` names `assemble --propose-plan`, which prints one. `build` runs
|
|
4333
|
+
`rig`, so it asks the full loader before its assemble stage writes anything.
|
|
4332
4334
|
|
|
4333
4335
|
`comfy paint` records each seed in `painting_<seed>_meta.json` beside the PNG:
|
|
4334
4336
|
|
|
@@ -4750,8 +4752,9 @@ need that no tag fits is `author:<label>` (§5, *A layer the author made*).
|
|
|
4750
4752
|
needs no config field to say whose it is; a `:hidden` layer whose layer the file
|
|
4751
4753
|
does not hold is refused (`LAYERS_HIDDEN_OF_PRESENT`).
|
|
4752
4754
|
|
|
4753
|
-
**The commands.**
|
|
4754
|
-
|
|
4755
|
+
**The commands.** A config for this route holds `seethrough: { "resolution": N }` (at
|
|
4756
|
+
least the file's longer side; no `steps`, `seed`, `offload` or `head_box`). Leave
|
|
4757
|
+
`--head` out everywhere:
|
|
4755
4758
|
|
|
4756
4759
|
```sh
|
|
4757
4760
|
rig-parts layers art.psd
|
|
@@ -5956,7 +5959,7 @@ See-through with another seed.
|
|
|
5956
5959
|
| <a id="CONFIG_WRITE_CHANGED"></a>`CONFIG_WRITE_CHANGED` | the existing destination no longer matches the snapshot read for `--write-config` when the writer is ready to commit: it is absent, no longer a regular file, or its permissions or text differ. The writer refuses to replace the current destination | keep the current config, reconcile any concurrent edit, and rerun against it |
|
|
5957
5960
|
| <a id="CONFIG_WRITE_FAILED"></a>`CONFIG_WRITE_FAILED` | a proposed-value splice moved an unintended field, or a config-writing operation failed: reading, checking collisions, staging, writing proposal artifacts, publishing or replacing the destination, or removing the staged temporary. The message names the action and path. Cleanup failures retain the primary failure and name the stranded temporary. Fresh cloth publication precedes temporary cleanup, so a cleanup failure may leave the complete new config present; there is no transaction over every proposal artifact | inspect the named action, destination and temporary; restore access or permissions as needed; remove only the specifically reported stranded temporary, and inspect any published config before retrying |
|
|
5958
5961
|
| <a id="CONFIG_FILE_PRESENT"></a><a id="CONFIG_IS_JSON"></a>`CONFIG_FILE_PRESENT`, `CONFIG_IS_JSON` | no such file, or not JSON; for a file the config names (`motion.animations_from`, `requirements`), the path is read relative to the config's directory, and the `motion.animations_from` line names the path as typed, that directory and what the two resolved to (issue #569) | `--config`; a file the config names: put it at the resolved path, or write the path from the config's directory |
|
|
5959
|
-
| <a id="CONFIG_KEY_KNOWN"></a><a id="CONFIG_KEY_RETIRED"></a><a id="CONFIG_FIELD_PRESENT"></a><a id="CONFIG_FIELD_TYPE"></a>`CONFIG_KEY_KNOWN`, `CONFIG_KEY_RETIRED`, `CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE` | an unknown key (a retired one says what replaces it), a missing one (a `motion.animations_from` file with no `spec` is told to write `"spec": "rigc-motion/1"` and the whole file's shape, issue #569), a wrong type (`bones[i].link_inherit` must be an object whose values are strings); a project's own record under a plain key, or an annotation (`note`, `<name>_note`) holding something other than a string; in `meshes.<part>.auto` (§3, *An automatic mesh*), a missing or out-of-range number, a Stage B opt-in that is not exactly a value rig-c accepts, or a field the mode does not have — a bound on one of the five allocation rows, or an authored `motionAmplitude` (it is derived, never written); under `comfy paint`, `CONFIG_FIELD_PRESENT` on `config.generation`: a config with no `generation` block (the line names the fields it holds) | the named field; a record goes under a key beginning `x-` (any JSON, read by nothing), a remark under `note` or `<name>_note` (a string) — §3; under `comfy paint`, `config.generation` |
|
|
5962
|
+
| <a id="CONFIG_KEY_KNOWN"></a><a id="CONFIG_KEY_RETIRED"></a><a id="CONFIG_FIELD_PRESENT"></a><a id="CONFIG_FIELD_TYPE"></a>`CONFIG_KEY_KNOWN`, `CONFIG_KEY_RETIRED`, `CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE` | an unknown key (a retired one says what replaces it), a missing one (a `motion.animations_from` file with no `spec` is told to write `"spec": "rigc-motion/1"` and the whole file's shape, issue #569), a wrong type (`bones[i].link_inherit` must be an object whose values are strings); a project's own record under a plain key, or an annotation (`note`, `<name>_note`) holding something other than a string; in `meshes.<part>.auto` (§3, *An automatic mesh*), a missing or out-of-range number, a Stage B opt-in that is not exactly a value rig-c accepts, or a field the mode does not have — a bound on one of the five allocation rows, or an authored `motionAmplitude` (it is derived, never written); under `comfy paint`, `CONFIG_FIELD_PRESENT` on `config.generation`: a config with no `generation` block (the line names the fields it holds); under `comfy seethrough --config`, `CONFIG_FIELD_PRESENT` on `config.seethrough.steps`, `.seed` or `.offload` when omitted from the config with no matching flag | the named field; a record goes under a key beginning `x-` (any JSON, read by nothing), a remark under `note` or `<name>_note` (a string) — §3; under `comfy paint`, `config.generation`; under `comfy seethrough --config`, set the field in `config.seethrough` or pass `--steps`, `--seed`, `--offload` / `--no-offload` |
|
|
5960
5963
|
| <a id="CONFIG_KEY_UNIQUE"></a>`CONFIG_KEY_UNIQUE` | a key written twice in an existing config updated by `--write-config`, or in one object of a file the config names — the pose file `generation.control.skeleton` names, or the `motion.animations_from` file; JSON keeps only the last value, so every other would be dropped without a word | that file: each key once |
|
|
5961
5964
|
| <a id="CONFIG_ANIMATION_NAME_FREE"></a>`CONFIG_ANIMATION_NAME_FREE` | the `motion.animations_from` file holds an animation named `idle`, the animation `config.motion` writes | rename that animation |
|
|
5962
5965
|
| <a id="CONFIG_HEAD_BOX_SQUARE"></a>`CONFIG_HEAD_BOX_SQUARE` | `seethrough.head_box` is not a non-empty square | `head_box` — take `propose --head-box`'s |
|
|
@@ -6051,7 +6054,9 @@ says why each requirement exists and what breaks without it.
|
|
|
6051
6054
|
reads `seethrough.resolution`, `.steps`, `.seed` and `.offload` through the early
|
|
6052
6055
|
layers config loader. Explicit `--resolution`, `--steps`, `--seed` and
|
|
6053
6056
|
`--offload` / `--no-offload` win over config values; the two offload switches
|
|
6054
|
-
cannot be combined.
|
|
6057
|
+
cannot be combined. When `--config` omits `steps`, `seed` or `offload` and no
|
|
6058
|
+
matching CLI flag supplies it, the command refuses with `CONFIG_FIELD_PRESENT`
|
|
6059
|
+
naming the field and the flag before any request. The resolved resolution must be an integer of at least 64,
|
|
6055
6060
|
including config values; `--resolution 64` overrides a smaller configured
|
|
6056
6061
|
resolution for this run. Without `--config`, the defaults are resolution 1024,
|
|
6057
6062
|
steps 30, seed 42 and offload false. No config is discovered automatically,
|
package/docs/STABILITY.md
CHANGED
|
@@ -803,7 +803,7 @@ part name, `[i]` an entry of a list):
|
|
|
803
803
|
- **generation.sampler** — required: `steps`, `cfg`, `sampler`, `scheduler`
|
|
804
804
|
- **generation.control** — required: `skeleton`, `strength`, `end_percent`; optional: `model`
|
|
805
805
|
- **generation.control.skeleton**, the pose file it names when it is no built-in — required: `width`, `height`, `points`
|
|
806
|
-
- **seethrough** — required: `resolution
|
|
806
|
+
- **seethrough** — required: `resolution`; optional: `steps`, `seed`, `offload` (read by comfy seethrough only), `head_box`, `arm_split`
|
|
807
807
|
- **seethrough.arm_split** — required: `order`, and one of `x` or `line` (issue #439)
|
|
808
808
|
- **assemble** — required: `rig_scale`, `plan` (from plain `assemble` on); optional: `seam`, `project`, `ground`, `extend_below_crop`, `patches`, `cuts`, `alternates`, `head_face_underfill`, `yield_refused`, `stage_map`, `keep_under_occluders`, `require_hidden_extent`, `extend_painting`, `edge_splits`, `take`, `editor_receipts`, `edited_parts`, `occluders`. The yield setting accepts a boolean or a nonempty list of final yielding output part names. The list is bound to the assembly config reading.
|
|
809
809
|
- **assemble.edge_splits[i]** — required: `over`, `under`, `band`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rig-parts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.0",
|
|
4
4
|
"description": "AI-authored 2D character parts from one anime painting and its See-through layer decomposition: measured parts, weighted-mesh rig specs, verified through rig-c before anything is written. A CLI for agents that cannot see the image.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
package/src/config.ts
CHANGED
|
@@ -194,9 +194,9 @@ export interface SeeThrough {
|
|
|
194
194
|
/** Issue #439: arm separation when both arms overlap in the full run. */
|
|
195
195
|
arm_split?: ArmSplit;
|
|
196
196
|
resolution: number;
|
|
197
|
-
steps
|
|
198
|
-
seed
|
|
199
|
-
offload
|
|
197
|
+
steps?: number;
|
|
198
|
+
seed?: number;
|
|
199
|
+
offload?: boolean;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export type Run = 'full' | 'head';
|
|
@@ -2537,7 +2537,7 @@ function checkHeadBox(c: Check, path: string, b: Json): void {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
|
|
2539
2539
|
function checkSeeThrough(c: Check, v: Json): void {
|
|
2540
|
-
const s = c.object('config.seethrough', v, ['resolution', 'steps', 'seed', 'offload'
|
|
2540
|
+
const s = c.object('config.seethrough', v, ['resolution'], ['steps', 'seed', 'offload', 'head_box', 'arm_split']);
|
|
2541
2541
|
if (s === null) return;
|
|
2542
2542
|
const p = 'config.seethrough';
|
|
2543
2543
|
const res = 'resolution' in s && c.int(`${p}.resolution`, s.resolution, 1) ? (s.resolution as number) : null;
|