chore(examples): drop the standalone sequence example workflow

This commit is contained in:
WildAi
2026-11-04 01:30:20 +03:00
parent ed1c492b9b
commit bfede01dd5
3 changed files with 6 additions and 39 deletions
-6
View File
@@ -183,12 +183,6 @@ Restart ComfyUI. The weights are downloaded automatically on the first run — n
| Workflow | What it shows |
|:---|:---|
| [`example_workflows/keep-workflow.json`](example_workflows/keep-workflow.json) | The shipped example: a single image (with two upscalers) **and** a video sequence. |
| [`example_workflows/keep-sequence-workflow.json`](example_workflows/keep-sequence-workflow.json) | The sequence node alone: a batch of frames in, PNG previews out. |
<div align="center">
<img alt="Graph diagram of the sequence example workflow" width="70%" src="./example_workflows/keep-sequence-workflow.png" />
<p><sub><i>The sequence example: a graph diagram <b>rendered from the workflow json</b> — not a ComfyUI screenshot.</i></sub></p>
</div>
> [!IMPORTANT]
> **The shipped example needs the [VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite) pack.** It uses the node types `VHS_LoadVideo` (reads the video) and `VHS_VideoCombine` (writes the restored video). VideoHelperSuite is an **optional dependency of the example only** — the pack itself does not import it, and the two other example nodes (and every node of this pack) work without it.
+2 -26
View File
@@ -113,15 +113,12 @@ def pack_schemas() -> dict:
@pytest.mark.unit
def test_the_examples_directory_holds_the_two_workflows():
"""The canonical examples directory holds both example workflows."""
def test_the_examples_directory_holds_the_shipped_workflow():
"""The canonical examples directory holds the shipped example workflow."""
names = {path.name for path in _workflow_files()}
assert "keep-workflow.json" in names, (
"the shipped example workflow must stay in example_workflows/"
)
assert "keep-sequence-workflow.json" in names, (
"P6.1 adds the sequence example next to the shipped one"
)
@pytest.mark.unit
@@ -349,24 +346,3 @@ def test_the_shipped_example_uses_the_v3_ids_and_the_vhs_nodes():
"the shipped example is a video workflow - it needs the VideoHelperSuite "
f"nodes {sorted(VHS_NODE_WHITELIST)}"
)
@pytest.mark.unit
def test_the_sequence_example_uses_the_sequence_node_and_png_previews():
"""The sequence example runs the sequence node and writes PNG previews."""
data = _load(EXAMPLES_DIR / "keep-sequence-workflow.json")
types = {node.get("type") for node in data["nodes"]}
assert "KEEP_ProcessImageSequence" in types, (
"the sequence example must use the KEEP_ProcessImageSequence node"
)
assert "KEEP_ModelLoader" in types, (
"the sequence example must load the model with the KEEP_ModelLoader node"
)
# SaveImage writes PNG files (the core node has no other format), the
# PreviewImage shows the frames in the UI.
assert "SaveImage" in types, (
"the sequence example must save the restored frames as PNG previews"
)
assert "PreviewImage" in types, (
"the sequence example must preview the restored frames"
)
+4 -7
View File
@@ -1,13 +1,10 @@
"""Render a preview image of a ComfyUI workflow json (P6.1).
"""Render a preview image of a ComfyUI workflow json.
The shipped example workflows carry a preview image next to the workflow
(``keep-workflow.json`` -> ``keep-workflow.png``). The **sequence** example
of P6.1 has no ComfyUI screenshot - it was written by hand - so its preview is
*rendered* from the workflow graph itself by this script:
This script *renders* a preview from the workflow graph itself:
python tools/render_workflow_preview.py \\
example_workflows/keep-sequence-workflow.json \\
example_workflows/keep-sequence-workflow.png
example_workflows/keep-workflow.json \\
preview.png
The rendered image is a **diagram of the graph** (nodes, titles, widget values
and the links between them) - not a screenshot of the ComfyUI frontend, and it