diffusers-workflow 0.19.0__py3-none-any.whl → 0.20.0__py3-none-any.whl
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.
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/METADATA +68 -4
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/RECORD +164 -144
- dw/__init__.py +45 -19
- dw/argument_warnings.py +57 -16
- dw/arguments.py +78 -9
- dw/audio_qc.py +2 -1
- dw/content_types.py +7 -0
- dw/cost_scaling.py +611 -30
- dw/docs/ACCELERATION.md +36 -5
- dw/docs/ARCHITECTURE.md +30 -13
- dw/docs/ATTRIBUTIONS.md +70 -1
- dw/docs/MCP.md +9 -9
- dw/docs/RECIPES_24GB.md +5 -0
- dw/docs/RELEASING.md +268 -0
- dw/docs/REMOTE.md +1 -1
- dw/docs/SECURITY.md +4 -0
- dw/docs/SERVER.md +70 -28
- dw/docs/TASKS.md +472 -16
- dw/docs/TESTING.md +2 -0
- dw/docs/WORKER_GUIDE.md +10 -1
- dw/docs/WORKFLOW_GUIDE.md +539 -27
- dw/docs/WORKSPACES.md +12 -1
- dw/for_each.py +6 -1
- dw/guides.py +323 -2
- dw/hold_audio.py +45 -20
- dw/host_memory.py +345 -6
- dw/host_memory_projection.py +61 -21
- dw/locations.py +19 -2
- dw/lora_catalog.py +3 -3
- dw/media_readers.py +61 -0
- dw/media_types.py +18 -1
- dw/output_extraction.py +75 -2
- dw/pipeline_ownership.py +29 -0
- dw/pipeline_processors/chain.py +799 -621
- dw/pipeline_processors/chain_check.py +783 -0
- dw/pipeline_processors/chain_config.py +858 -0
- dw/pipeline_processors/chain_continuity.py +272 -0
- dw/pipeline_processors/chain_look.py +402 -0
- dw/pipeline_processors/chain_pick.py +53 -0
- dw/pipeline_processors/chain_resume.py +634 -0
- dw/pipeline_processors/chain_rules.py +1038 -0
- dw/pipeline_processors/chain_spill.py +5 -3
- dw/pipeline_processors/components.py +28 -7
- dw/pipeline_processors/h3_anchor_stats.py +9 -2
- dw/pipeline_processors/h3_anchor_steps.py +17 -2
- dw/pipeline_processors/h3_guide_steps.py +205 -15
- dw/pipeline_processors/h3_guides.py +294 -5
- dw/pipeline_processors/h3_hold_steps.py +60 -22
- dw/pipeline_processors/h3_mask.py +92 -0
- dw/pipeline_processors/h3_mask_steps.py +141 -3
- dw/pipeline_processors/h3_rules.py +294 -16
- dw/pipeline_processors/h3_selflift.py +295 -0
- dw/pipeline_processors/h3_selflift_latents.py +204 -0
- dw/pipeline_processors/h3_selflift_steps.py +186 -0
- dw/pipeline_processors/h3_tst.py +637 -0
- dw/pipeline_processors/h3_windows.py +934 -0
- dw/pipeline_processors/pipeline.py +14 -0
- dw/pipeline_processors/pipeline_h3.py +197 -29
- dw/plan.py +259 -30
- dw/plan_downloads.py +51 -17
- dw/presets.py +240 -0
- dw/previous_results.py +103 -22
- dw/quantized_cache.py +71 -3
- dw/realize.py +5 -0
- dw/runs.py +21 -12
- dw/scalar_result_validation.py +15 -2
- dw/schema.py +1 -0
- dw/script_lines.py +129 -2
- dw/security.py +11 -0
- dw/server/admission.py +40 -23
- dw/server/api_models.py +17 -5
- dw/server/catalog.py +2 -1
- dw/server/catalog_shape.py +19 -0
- dw/server/deps.py +55 -14
- dw/server/dispatch.py +93 -9
- dw/server/guides.py +50 -5
- dw/server/host_ram_need.py +71 -8
- dw/server/job_history.py +233 -12
- dw/server/job_record.py +71 -0
- dw/server/job_results.py +50 -10
- dw/server/jobs.py +54 -45
- dw/server/observed_cost.py +114 -42
- dw/server/pool.py +25 -3
- dw/server/routes/jobs.py +32 -7
- dw/server/routes/media.py +7 -2
- dw/server/routes/system.py +1 -1
- dw/server/ui/assets/{cssMode-D8Hfv6Yf.js → cssMode-BLczhiwk.js} +1 -1
- dw/server/ui/assets/{editor.api-Cw9AjHan.js → editor.api-Chf6n9IF.js} +1 -1
- dw/server/ui/assets/{freemarker2-ClNkL6G6.js → freemarker2-CbNPcl_K.js} +1 -1
- dw/server/ui/assets/{handlebars-c2OSFqSg.js → handlebars-CMHoTMdw.js} +1 -1
- dw/server/ui/assets/{html-BC1m7TzT.js → html-B1rcKnLp.js} +1 -1
- dw/server/ui/assets/{htmlMode-DCw1Hrl0.js → htmlMode-DQMxv4HN.js} +1 -1
- dw/server/ui/assets/index-CCklaHIx.css +1 -0
- dw/server/ui/assets/{index-v21_BHFC.js → index-DVE-KyTo.js} +44 -44
- dw/server/ui/assets/{javascript-iJvixZbP.js → javascript-DfusLKYZ.js} +1 -1
- dw/server/ui/assets/{jsonMode-BLumFlzb.js → jsonMode-C2b9weES.js} +1 -1
- dw/server/ui/assets/{liquid-DoyHxFea.js → liquid-HdjOJvi4.js} +1 -1
- dw/server/ui/assets/{lspLanguageFeatures-Dj-hApsG.js → lspLanguageFeatures-7Wi9GY1o.js} +1 -1
- dw/server/ui/assets/{mdx-CdLT3soj.js → mdx-Z2wPSwti.js} +1 -1
- dw/server/ui/assets/{monaco-D5d18WKE.js → monaco-CbuAR5gL.js} +4 -4
- dw/server/ui/assets/{python-CQinAIQD.js → python-w9shy2AN.js} +1 -1
- dw/server/ui/assets/{razor-zIDjWUyJ.js → razor-BwsMaofX.js} +1 -1
- dw/server/ui/assets/{tsMode-Ck0qjeUP.js → tsMode-BFggAMO5.js} +1 -1
- dw/server/ui/assets/{typescript-xZbJO0qx.js → typescript-BTnSomSR.js} +1 -1
- dw/server/ui/assets/{workers-vTelFsPt.js → workers-BXJcizSR.js} +1 -1
- dw/server/ui/assets/{xml-BJQ-lDBI.js → xml-VXA4fRwS.js} +1 -1
- dw/server/ui/assets/{yaml-15EcBrR5.js → yaml-BUBgM2SB.js} +1 -1
- dw/server/ui/index.html +2 -2
- dw/server/worker_memory.py +30 -1
- dw/settings.py +16 -8
- dw/shots.py +8 -1
- dw/slice_preflight.py +6 -1
- dw/sparse_attention.py +7 -5
- dw/step.py +5 -2
- dw/step_value_checks.py +61 -0
- dw/task_domains.py +20 -8
- dw/task_problems.py +45 -2
- dw/tasks/assess.py +20 -1
- dw/tasks/audio_dynamics.py +3 -1
- dw/tasks/audio_handlers.py +5 -2
- dw/tasks/audio_slice.py +497 -0
- dw/tasks/audio_transcription.py +4 -1
- dw/tasks/audio_utils.py +105 -229
- dw/tasks/chain_repair.py +817 -0
- dw/tasks/concat_videos.py +78 -8
- dw/tasks/dissolve_videos.py +16 -3
- dw/tasks/face_drift.py +37 -4
- dw/tasks/h3_latent_upscale.py +317 -7
- dw/tasks/interpolate_frames.py +5 -0
- dw/tasks/joins.py +144 -25
- dw/tasks/lip_sync.py +301 -0
- dw/tasks/model_handlers.py +41 -0
- dw/tasks/narration_check.py +258 -0
- dw/tasks/narration_retime.py +849 -0
- dw/tasks/registry.py +28 -4
- dw/tasks/script_findings.py +17 -4
- dw/tasks/script_take.py +33 -5
- dw/tasks/task.py +5 -0
- dw/tasks/text_takes.py +229 -0
- dw/tasks/timeline_export.py +496 -0
- dw/tasks/trim.py +13 -9
- dw/tasks/upscale.py +5 -0
- dw/tasks/video_handlers.py +26 -0
- dw/tasks/video_utils.py +23 -10
- dw/tasks/voice_attribution.py +20 -8
- dw/tasks/windows.py +2 -8
- dw/type_references.py +58 -1
- dw/validation.py +92 -4
- dw/variable_constraints.py +179 -6
- dw/variables.py +19 -0
- dw/video_size_errors.py +71 -2
- dw/vram_inheritance.py +13 -13
- dw/worker.py +47 -9
- dw/workflow.py +53 -2
- dw/workflow_run.py +25 -10
- dw/workflow_schema.json +250 -6
- dw_mcp/client.py +10 -5
- dw_mcp/diagnose.py +13 -3
- dw_mcp/tools_catalog.py +12 -3
- dw_mcp/tools_jobs.py +5 -1
- dw/server/ui/assets/index-BK7x2KPW.css +0 -1
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/WHEEL +0 -0
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/entry_points.txt +0 -0
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/licenses/LICENSE +0 -0
- {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffusers-workflow
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.20.0
|
|
4
4
|
Summary: Declarative workflow engine and web UI for Hugging Face Diffusers
|
|
5
5
|
Author: dkackman
|
|
6
6
|
License: Apache-2.0
|
|
@@ -102,6 +102,37 @@ variable, run it again, compare takes and keep the one you like.
|
|
|
102
102
|
<img alt="A workspace's overview in the web UI: recent outputs from an agent-made musical trailer, its jobs, and the workflows the agent wrote" src="docs/img/ui-overview.jpg">
|
|
103
103
|
</picture>
|
|
104
104
|
|
|
105
|
+
### Coming from ComfyUI?
|
|
106
|
+
|
|
107
|
+
The job is the same: load models, wire steps together, get media out. What changes is
|
|
108
|
+
who builds the graph and how it is checked before it runs.
|
|
109
|
+
|
|
110
|
+
| | ComfyUI | diffusers-workflow |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| A workflow is | a node graph you draw | a JSON document of named steps an agent writes, and you can edit as a form |
|
|
113
|
+
| A new model needs | a custom node pack | nothing, if diffusers has the pipeline: any pipeline class is reachable by name |
|
|
114
|
+
| Mistakes are found | links are type-checked on queue; the rest when it runs | at validation: schema, references and every argument against the real pipeline signatures, before any model loads |
|
|
115
|
+
| Before a long render | no estimate | `validate_workflow` quotes GPU minutes from this machine's own run history |
|
|
116
|
+
| Between runs | models stay loaded | models stay loaded (one persistent worker per GPU) |
|
|
117
|
+
| A result | an image with the graph embedded | the same, and a job that keeps the exact workflow it ran, drawn as a data-flow graph, re-runnable with a new seed |
|
|
118
|
+
|
|
119
|
+
It is not a ComfyUI replacement for hand-wiring a graph node by node. It is for
|
|
120
|
+
describing what you want and letting an agent compose, price, run and judge it, then
|
|
121
|
+
taking over in the browser where that is quicker.
|
|
122
|
+
|
|
123
|
+
### What it makes
|
|
124
|
+
|
|
125
|
+
| | Ready-made templates |
|
|
126
|
+
|---|---|
|
|
127
|
+
| **Images** | FLUX 3 Klein (text, edits, multi-reference, layout boxes), FLUX.1 / FLUX.2 / Krea, Qwen Image (and edit), Z-Image, SDXL and SD 1.5; ControlNet, IP-Adapter, LoRA, inpaint and outpaint |
|
|
128
|
+
| **Video with sound** | MiniMax H3 (dialogue, multi-shot cuts, music videos, reference subjects and voices), LTX-2.5 (image-to-video, keyframes, 2x upscale, restore and colourise, alpha mattes), Kandinsky 6 |
|
|
129
|
+
| **Music, speech, sound** | MiniMax Music 3 (sung lyrics or instrumental), Audio8 TTS voice cloning and MMS TTS, MMAudio sound effects from text or under a clip, Whisper transcription |
|
|
130
|
+
| **Longer than one clip** | chained segments that hold the look and audio level across seams, repair of one bad segment in place, music and narration of any length, storyboards and timed animatics, cut-and-score assembly, and an OpenTimelineIO export that DaVinci Resolve opens as one clip per shot |
|
|
131
|
+
|
|
132
|
+
Anything else diffusers can load runs from a workflow too; the templates are where the
|
|
133
|
+
agent starts, not a limit. The full list is in [workflows/](workflows/) and the
|
|
134
|
+
[dw plugin](plugins/dw/README.md).
|
|
135
|
+
|
|
105
136
|
## Getting started
|
|
106
137
|
|
|
107
138
|
**1. Install.** The script picks the right torch build for your platform, creates a
|
|
@@ -193,7 +224,8 @@ The [dw plugin](plugins/dw/README.md) adds what a general-purpose agent can't kn
|
|
|
193
224
|
on its own: one skill per model family (MiniMax H3 and Music 3, LTX-2.5, Kandinsky 6,
|
|
194
225
|
FLUX 3 Klein) that picks the template for a request and states the rules that bite.
|
|
195
226
|
Cross-cutting skills cover script-to-video, series with a consistent cast,
|
|
196
|
-
storyboards and animatics, and a shared
|
|
227
|
+
storyboards and animatics, pieces longer than one clip, and a shared
|
|
228
|
+
camera-and-look vocabulary.
|
|
197
229
|
|
|
198
230
|

|
|
199
231
|
|
|
@@ -266,6 +298,38 @@ you do, the [Workflow Guide](docs/WORKFLOW_GUIDE.md) is the reference, the
|
|
|
266
298
|
a command-line client, `python -m dw.run workflow.json prompt="a cat"`, which queues
|
|
267
299
|
a job on a running server (see [Server & Web UI](docs/SERVER.md#the-command-line)).
|
|
268
300
|
|
|
301
|
+
Here is the shape, trimmed: a still from FLUX 3 Klein, animated by LTX-2.5.
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{
|
|
305
|
+
"variables": { "prompt": "a lighthouse at dusk, waves breaking", "seed": null },
|
|
306
|
+
"seed": "variable:seed",
|
|
307
|
+
"steps": [
|
|
308
|
+
{
|
|
309
|
+
"name": "still",
|
|
310
|
+
"pipeline": {
|
|
311
|
+
"configuration": { "component_type": "ModularPipeline" },
|
|
312
|
+
"from_pretrained_arguments": { "model_name": "black-forest-labs/flux-3-image-klein" },
|
|
313
|
+
"arguments": { "prompt": "variable:prompt", "width": 1280, "height": 720 }
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "clip",
|
|
318
|
+
"pipeline": {
|
|
319
|
+
"configuration": { "component_type": "LTX2ImageToVideoPipeline" },
|
|
320
|
+
"from_pretrained_arguments": { "model_name": "Lightricks/LTX-2.5-Diffusers" },
|
|
321
|
+
"arguments": { "prompt": "variable:prompt", "image": "previous_result:still" }
|
|
322
|
+
},
|
|
323
|
+
"result": { "content_type": "video/mp4" }
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
`component_type` is a diffusers class name and `arguments` are its `__call__`
|
|
330
|
+
arguments, so the diffusers docs are the reference for what a step takes. The real
|
|
331
|
+
templates add the device placement, quantization and size rules each model needs.
|
|
332
|
+
|
|
269
333
|
The engine also covers:
|
|
270
334
|
|
|
271
335
|
- **Quantization:** BitsAndBytes, TorchAO, GGUF, SDNQ and optimum-quanto, set per
|
|
@@ -273,8 +337,8 @@ The engine also covers:
|
|
|
273
337
|
- **Acceleration:** FirstBlockCache, FasterCache, MagCache, TaylorSeerCache,
|
|
274
338
|
`torch.compile` and attention backends.
|
|
275
339
|
- **Adapters and prompts:** LoRA, IP-Adapter and A1111-style prompt weighting.
|
|
276
|
-
- **
|
|
277
|
-
step
|
|
340
|
+
- **Step-output caching:** re-running a fixed-seed workflow, or one that changed
|
|
341
|
+
only a later step, reuses the steps that did not change.
|
|
278
342
|
- **Utility tasks:** upscaling, face restoration, segmentation, captioning, frame
|
|
279
343
|
interpolation, audio slicing, cut-and-score assembly and more.
|
|
280
344
|
|