pixelkiln 0.145.0 → 0.147.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/docs/CLI.md CHANGED
@@ -172,7 +172,13 @@ what is left of the same budget, asking the same "Spend ...?" question each
172
172
  time unless `--yes`. With `--yes`, an asset whose only option is a single
173
173
  candidate or one ordered frame set (an animation clip) is accepted as `index: 0`
174
174
  without waiting on the pick page; assets with two or more candidates still
175
- open it. It stops when a wave finds nothing new, when a wave
175
+ open it. `--accept-first` takes the first candidate of every asset instead,
176
+ so no page opens at all. That is the provider's first, not a judged best one;
177
+ check the art afterwards in `gallery`. A run nobody is watching needs both:
178
+
179
+ ```bash
180
+ pixelkiln gen --budget 40 --yes --accept-first
181
+ ``` It stops when a wave finds nothing new, when a wave
176
182
  submits nothing, or when the remaining budget cannot cover the next wave; in
177
183
  that last case the earlier waves' work is saved and the message says to run
178
184
  `gen` again with a budget for the rest. `--force` applies to the first wave
@@ -232,7 +238,8 @@ the candidate cache (`.pixelkiln/review-state.json`), so a refresh or a
232
238
  restarted run reopens the page where it was left. Frames and candidates are
233
239
  served from that local cache by the review server itself, each frame requested
234
240
  once. Only assets accepted when you press **Apply** are written to the
235
- lockfile; closing the window applies nothing. See the
241
+ lockfile; closing the window applies nothing. `--accept-first` serves no page:
242
+ it applies the first candidate (or the frame set) of every asset in review. See the
236
243
  [Getting started guide](GETTING_STARTED.md#start-a-new-project) for a
237
244
  screenshot of the interface.
238
245
 
package/docs/COMFYUI.md CHANGED
@@ -168,6 +168,8 @@ of the asset spec hash, so changing one correctly makes that asset stale.
168
168
  Use `frames` when one asset is a short sequence of still renders controlled by
169
169
  one changing workflow input. This is intended for pose images, expression
170
170
  labels, or another explicit per-frame control. It is not video diffusion.
171
+ The bundled `comfyui/pixel-art-pose-frames@1.0.0` recipe is a ready style of
172
+ this kind for OpenPose maps; see [Versioned recipes](RECIPES.md).
171
173
 
172
174
  ```jsonc
173
175
  {
@@ -152,6 +152,11 @@ The sheet is served only on localhost and selection remains human-controlled.
152
152
  Only assets accepted when you press **Apply** are recorded; unresolved ones can
153
153
  be reopened later with [`pixelkiln pick`](CLI.md#pick).
154
154
 
155
+ For a run nobody is watching, `gen --budget 40 --yes --accept-first` skips both
156
+ stops: `--yes` the spend question, and `--accept-first` the sheet, by taking
157
+ each asset's first candidate. The first is the provider's order, not the best
158
+ one, so look through the results in `pixelkiln gallery` afterwards.
159
+
155
160
  If a run stops between stages, rerun `plan`. It points `processing` work to
156
161
  `poll`, `review` work to `pick`, and `selected` or `download-failed` work to
157
162
  `fetch`; these resume existing paid work without another submission.
package/docs/RECIPES.md CHANGED
@@ -61,6 +61,23 @@ of colors. Keep it at `composition-source`; use the smoke to test plumbing, not
61
61
  as a quality preset. See
62
62
  [Controlled asset revisions](REVISIONS.md).
63
63
 
64
+ For an ordered frame set driven by pose maps, install the pose recipe:
65
+
66
+ ```bash
67
+ pixelkiln recipe install comfyui/pixel-art-pose-frames@1.0.0
68
+ ```
69
+
70
+ Its style uses `generator: frames` with `frames.vary: "pose"` and
71
+ `seedStep: 0`, so each asset lists its committed OpenPose maps under
72
+ `providerInputs.pose` and every other input stays fixed. The graph is SDXL
73
+ base, Pixel Art XL at 0.85 and the xinsir OpenPose ControlNet at 0.75, all
74
+ built-in ComfyUI nodes. It is `composition-source`. Eleven benchmark runs
75
+ over two characters showed frames that follow their poses but drift in
76
+ identity and props without a per-character LoRA, which the recipe does not
77
+ ship. The [pose-frame benchmark](../benchmarks/provider-frame-sets/comfyui/README.md)
78
+ has the evidence and the settings that were rejected. Review and approve the
79
+ whole set at 1×.
80
+
64
81
  ## Verify the recipe and workstation
65
82
 
66
83
  Verify the metadata digest and every included workflow before using a pack:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.145.0",
3
+ "version": "0.147.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "https://unpkg.com/pixelkiln/schema/recipe.schema.json",
3
+ "format": "pixelkiln-recipe",
4
+ "schemaVersion": 1,
5
+ "id": "comfyui/pixel-art-pose-frames",
6
+ "version": "1.0.0",
7
+ "provider": "comfyui",
8
+ "summary": "SDXL, Pixel Art XL and an OpenPose ControlNet that render one still per committed pose map, tracked as one frame set.",
9
+ "files": [
10
+ {
11
+ "path": "workflow-api.json",
12
+ "role": "workflow",
13
+ "sha256": "5db97b88a07e307ccf3930ba3e970851051533f963f9ef6030d38926e1c4e0c2"
14
+ }
15
+ ],
16
+ "models": [
17
+ {
18
+ "path": "checkpoints/sd_xl_base_1.0.safetensors",
19
+ "sha256": "31e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b",
20
+ "source": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0.safetensors",
21
+ "license": "CreativeML Open RAIL++-M"
22
+ },
23
+ {
24
+ "path": "loras/pixel-art-xl.safetensors",
25
+ "sha256": "4234637cb80c998f41e348e6a6cb6bc20d8d038b2b0f256b6129b3b5e353eef7",
26
+ "source": "https://huggingface.co/nerijs/pixel-art-xl/blob/main/pixel-art-xl.safetensors",
27
+ "license": "CreativeML OpenRAIL-M"
28
+ },
29
+ {
30
+ "path": "controlnet/controlnet-openpose-sdxl-1.0.safetensors",
31
+ "sha256": "b8524e557a7df60d081f5d4a0eb109967d107df217943bf88c2d99b9ebcc06c5",
32
+ "source": "https://huggingface.co/xinsir/controlnet-openpose-sdxl-1.0/blob/main/diffusion_pytorch_model.safetensors",
33
+ "license": "Apache-2.0"
34
+ }
35
+ ],
36
+ "styleId": "comfyui-pose-frames",
37
+ "style": {
38
+ "provider": "comfyui",
39
+ "generator": "frames",
40
+ "outDir": "art/generated/comfyui-pose-frames",
41
+ "seed": 31415,
42
+ "noBackground": false,
43
+ "promptPrefix": "pixel art, full body side view, facing right",
44
+ "promptSuffix": "plain flat grey background, game sprite",
45
+ "providerOptions": {
46
+ "comfyui": {
47
+ "workflowFile": "{{recipeDir}}/workflow-api.json",
48
+ "outputNodeId": "9",
49
+ "numImages": 1,
50
+ "bindings": {
51
+ "prompt": {
52
+ "nodeId": "6",
53
+ "input": "text"
54
+ },
55
+ "width": {
56
+ "nodeId": "5",
57
+ "input": "width"
58
+ },
59
+ "height": {
60
+ "nodeId": "5",
61
+ "input": "height"
62
+ },
63
+ "seed": {
64
+ "nodeId": "3",
65
+ "input": "seed"
66
+ },
67
+ "pose": {
68
+ "nodeId": "20",
69
+ "input": "image"
70
+ }
71
+ },
72
+ "frames": {
73
+ "vary": "pose",
74
+ "seedStep": 0
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "workflow": {
80
+ "path": "workflow-api.json",
81
+ "outputNodeId": "9",
82
+ "numImages": 1,
83
+ "bindings": {
84
+ "prompt": {
85
+ "nodeId": "6",
86
+ "input": "text"
87
+ },
88
+ "width": {
89
+ "nodeId": "5",
90
+ "input": "width"
91
+ },
92
+ "height": {
93
+ "nodeId": "5",
94
+ "input": "height"
95
+ },
96
+ "seed": {
97
+ "nodeId": "3",
98
+ "input": "seed"
99
+ },
100
+ "pose": {
101
+ "nodeId": "20",
102
+ "input": "image"
103
+ }
104
+ },
105
+ "frames": {
106
+ "vary": "pose",
107
+ "seedStep": 0
108
+ }
109
+ },
110
+ "quality": {
111
+ "stage": "composition-source",
112
+ "workingCanvas": {
113
+ "width": 1024,
114
+ "height": 1024
115
+ },
116
+ "recommendedNativeSize": {
117
+ "min": 48,
118
+ "max": 128
119
+ },
120
+ "paletteColors": {
121
+ "min": 16,
122
+ "max": 32
123
+ },
124
+ "background": "opaque",
125
+ "checks": [
126
+ "prompt-coverage",
127
+ "native-grid",
128
+ "final-palette",
129
+ "human-1x"
130
+ ],
131
+ "notes": [
132
+ "Each frame is an independent still conditioned on its pose map; nothing carries identity from one frame to the next.",
133
+ "Pose maps are committed OpenPose images at 1024x1024 with one ground line; overshoot the motion you want, because the ControlNet at 0.75 undershoots it.",
134
+ "Without a character LoRA, identity and props drift between frames. The benchmark's best identity came from a LoRA trained per character, which this recipe does not ship.",
135
+ "Review the whole set at 1x before approving it; a passing grid check cannot judge identity, arcs or foot sliding."
136
+ ]
137
+ },
138
+ "integrity": {
139
+ "algorithm": "sha256",
140
+ "digest": "9b12926f43e4b14a2c01139d468e2056a6216f516e0b433c70fb84db65f61ccd"
141
+ }
142
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "10": {
3
+ "class_type": "LoraLoader",
4
+ "inputs": {
5
+ "clip": [
6
+ "4",
7
+ 1
8
+ ],
9
+ "lora_name": "pixel-art-xl.safetensors",
10
+ "model": [
11
+ "4",
12
+ 0
13
+ ],
14
+ "strength_clip": 0.85,
15
+ "strength_model": 0.85
16
+ }
17
+ },
18
+ "20": {
19
+ "class_type": "LoadImage",
20
+ "inputs": {
21
+ "image": "pose.png"
22
+ }
23
+ },
24
+ "21": {
25
+ "class_type": "ControlNetLoader",
26
+ "inputs": {
27
+ "control_net_name": "controlnet-openpose-sdxl-1.0.safetensors"
28
+ }
29
+ },
30
+ "22": {
31
+ "class_type": "ControlNetApplyAdvanced",
32
+ "inputs": {
33
+ "control_net": [
34
+ "21",
35
+ 0
36
+ ],
37
+ "end_percent": 1.0,
38
+ "image": [
39
+ "20",
40
+ 0
41
+ ],
42
+ "negative": [
43
+ "7",
44
+ 0
45
+ ],
46
+ "positive": [
47
+ "6",
48
+ 0
49
+ ],
50
+ "start_percent": 0.0,
51
+ "strength": 0.75,
52
+ "vae": [
53
+ "4",
54
+ 2
55
+ ]
56
+ }
57
+ },
58
+ "3": {
59
+ "class_type": "KSampler",
60
+ "inputs": {
61
+ "cfg": 6,
62
+ "denoise": 1,
63
+ "latent_image": [
64
+ "5",
65
+ 0
66
+ ],
67
+ "model": [
68
+ "10",
69
+ 0
70
+ ],
71
+ "negative": [
72
+ "22",
73
+ 1
74
+ ],
75
+ "positive": [
76
+ "22",
77
+ 0
78
+ ],
79
+ "sampler_name": "dpmpp_2m",
80
+ "scheduler": "karras",
81
+ "seed": 31415,
82
+ "steps": 32
83
+ }
84
+ },
85
+ "4": {
86
+ "class_type": "CheckpointLoaderSimple",
87
+ "inputs": {
88
+ "ckpt_name": "sd_xl_base_1.0.safetensors"
89
+ }
90
+ },
91
+ "5": {
92
+ "class_type": "EmptyLatentImage",
93
+ "inputs": {
94
+ "batch_size": 1,
95
+ "height": 1024,
96
+ "width": 1024
97
+ }
98
+ },
99
+ "6": {
100
+ "class_type": "CLIPTextEncode",
101
+ "inputs": {
102
+ "clip": [
103
+ "10",
104
+ 1
105
+ ],
106
+ "text": "pixel art, full body side view of a character, plain flat grey background, game sprite"
107
+ }
108
+ },
109
+ "7": {
110
+ "class_type": "CLIPTextEncode",
111
+ "inputs": {
112
+ "clip": [
113
+ "10",
114
+ 1
115
+ ],
116
+ "text": "photograph, photorealistic, 3d render, text, watermark, blurry, soft focus, gradients, cropped, multiple characters, scenery"
117
+ }
118
+ },
119
+ "8": {
120
+ "class_type": "VAEDecode",
121
+ "inputs": {
122
+ "samples": [
123
+ "3",
124
+ 0
125
+ ],
126
+ "vae": [
127
+ "4",
128
+ 2
129
+ ]
130
+ }
131
+ },
132
+ "9": {
133
+ "class_type": "SaveImage",
134
+ "inputs": {
135
+ "filename_prefix": "pixelkiln/comfyui-pose-frames",
136
+ "images": [
137
+ "8",
138
+ 0
139
+ ]
140
+ }
141
+ }
142
+ }
@@ -830,6 +830,39 @@
830
830
  "required": [
831
831
  "prompt"
832
832
  ],
833
+ "additionalProperties": {
834
+ "type": "object",
835
+ "properties": {
836
+ "nodeId": {
837
+ "type": "string",
838
+ "minLength": 1
839
+ },
840
+ "input": {
841
+ "type": "string",
842
+ "minLength": 1
843
+ }
844
+ },
845
+ "required": [
846
+ "nodeId",
847
+ "input"
848
+ ],
849
+ "additionalProperties": false
850
+ }
851
+ },
852
+ "frames": {
853
+ "type": "object",
854
+ "properties": {
855
+ "vary": {
856
+ "type": "string",
857
+ "minLength": 1
858
+ },
859
+ "seedStep": {
860
+ "type": "integer"
861
+ }
862
+ },
863
+ "required": [
864
+ "vary"
865
+ ],
833
866
  "additionalProperties": false
834
867
  }
835
868
  },
@@ -39,6 +39,10 @@ hashes.
39
39
  pass one `--budget provider=amount` ceiling for every paid provider in the plan.
40
40
  - Leave visual selection to the local `pixelkiln pick` review page unless the
41
41
  user explicitly provides a selection rule. Closing it applies nothing.
42
+ - `--accept-first` on `gen` or `pick` takes every asset's first candidate and
43
+ opens no page. That is the provider's order, not a judgement. Pass it only
44
+ when the user asks for a run without review, together with `--yes` (which
45
+ skips the spend question), and tell them to check the art in `gallery`.
42
46
  - To answer "what has this project generated?", use `pixelkiln gallery --json`
43
47
  for the offline provenance snapshot, or open `pixelkiln gallery` for the
44
48
  person to browse it. Both are read-only and contact no provider. Leave
@@ -79,6 +79,11 @@ the committed workflow placeholder. Treat an unknown binding, duplicate target,
79
79
  reserved built-in name, missing file, or type mismatch as a manifest error.
80
80
  Changing an input value or image bytes makes only the affected asset stale.
81
81
 
82
+ For pose-driven frame sets, prefer the bundled
83
+ `comfyui/pixel-art-pose-frames@1.0.0` recipe (`frames.vary: "pose"`, fixed
84
+ seed). It is `composition-source`: expect identity and prop drift between
85
+ frames, and never approve part of a set.
86
+
82
87
  For `generator: frames`, `providerOptions.comfyui.frames.vary` names one custom
83
88
  binding and the matching `providerInputs` value is an ordered 2–64 item array.
84
89
  Keep `numImages: 1`. A nonzero `seedStep` also requires `style.seed` and a seed