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.
Files changed (165) hide show
  1. {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/METADATA +68 -4
  2. {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/RECORD +164 -144
  3. dw/__init__.py +45 -19
  4. dw/argument_warnings.py +57 -16
  5. dw/arguments.py +78 -9
  6. dw/audio_qc.py +2 -1
  7. dw/content_types.py +7 -0
  8. dw/cost_scaling.py +611 -30
  9. dw/docs/ACCELERATION.md +36 -5
  10. dw/docs/ARCHITECTURE.md +30 -13
  11. dw/docs/ATTRIBUTIONS.md +70 -1
  12. dw/docs/MCP.md +9 -9
  13. dw/docs/RECIPES_24GB.md +5 -0
  14. dw/docs/RELEASING.md +268 -0
  15. dw/docs/REMOTE.md +1 -1
  16. dw/docs/SECURITY.md +4 -0
  17. dw/docs/SERVER.md +70 -28
  18. dw/docs/TASKS.md +472 -16
  19. dw/docs/TESTING.md +2 -0
  20. dw/docs/WORKER_GUIDE.md +10 -1
  21. dw/docs/WORKFLOW_GUIDE.md +539 -27
  22. dw/docs/WORKSPACES.md +12 -1
  23. dw/for_each.py +6 -1
  24. dw/guides.py +323 -2
  25. dw/hold_audio.py +45 -20
  26. dw/host_memory.py +345 -6
  27. dw/host_memory_projection.py +61 -21
  28. dw/locations.py +19 -2
  29. dw/lora_catalog.py +3 -3
  30. dw/media_readers.py +61 -0
  31. dw/media_types.py +18 -1
  32. dw/output_extraction.py +75 -2
  33. dw/pipeline_ownership.py +29 -0
  34. dw/pipeline_processors/chain.py +799 -621
  35. dw/pipeline_processors/chain_check.py +783 -0
  36. dw/pipeline_processors/chain_config.py +858 -0
  37. dw/pipeline_processors/chain_continuity.py +272 -0
  38. dw/pipeline_processors/chain_look.py +402 -0
  39. dw/pipeline_processors/chain_pick.py +53 -0
  40. dw/pipeline_processors/chain_resume.py +634 -0
  41. dw/pipeline_processors/chain_rules.py +1038 -0
  42. dw/pipeline_processors/chain_spill.py +5 -3
  43. dw/pipeline_processors/components.py +28 -7
  44. dw/pipeline_processors/h3_anchor_stats.py +9 -2
  45. dw/pipeline_processors/h3_anchor_steps.py +17 -2
  46. dw/pipeline_processors/h3_guide_steps.py +205 -15
  47. dw/pipeline_processors/h3_guides.py +294 -5
  48. dw/pipeline_processors/h3_hold_steps.py +60 -22
  49. dw/pipeline_processors/h3_mask.py +92 -0
  50. dw/pipeline_processors/h3_mask_steps.py +141 -3
  51. dw/pipeline_processors/h3_rules.py +294 -16
  52. dw/pipeline_processors/h3_selflift.py +295 -0
  53. dw/pipeline_processors/h3_selflift_latents.py +204 -0
  54. dw/pipeline_processors/h3_selflift_steps.py +186 -0
  55. dw/pipeline_processors/h3_tst.py +637 -0
  56. dw/pipeline_processors/h3_windows.py +934 -0
  57. dw/pipeline_processors/pipeline.py +14 -0
  58. dw/pipeline_processors/pipeline_h3.py +197 -29
  59. dw/plan.py +259 -30
  60. dw/plan_downloads.py +51 -17
  61. dw/presets.py +240 -0
  62. dw/previous_results.py +103 -22
  63. dw/quantized_cache.py +71 -3
  64. dw/realize.py +5 -0
  65. dw/runs.py +21 -12
  66. dw/scalar_result_validation.py +15 -2
  67. dw/schema.py +1 -0
  68. dw/script_lines.py +129 -2
  69. dw/security.py +11 -0
  70. dw/server/admission.py +40 -23
  71. dw/server/api_models.py +17 -5
  72. dw/server/catalog.py +2 -1
  73. dw/server/catalog_shape.py +19 -0
  74. dw/server/deps.py +55 -14
  75. dw/server/dispatch.py +93 -9
  76. dw/server/guides.py +50 -5
  77. dw/server/host_ram_need.py +71 -8
  78. dw/server/job_history.py +233 -12
  79. dw/server/job_record.py +71 -0
  80. dw/server/job_results.py +50 -10
  81. dw/server/jobs.py +54 -45
  82. dw/server/observed_cost.py +114 -42
  83. dw/server/pool.py +25 -3
  84. dw/server/routes/jobs.py +32 -7
  85. dw/server/routes/media.py +7 -2
  86. dw/server/routes/system.py +1 -1
  87. dw/server/ui/assets/{cssMode-D8Hfv6Yf.js → cssMode-BLczhiwk.js} +1 -1
  88. dw/server/ui/assets/{editor.api-Cw9AjHan.js → editor.api-Chf6n9IF.js} +1 -1
  89. dw/server/ui/assets/{freemarker2-ClNkL6G6.js → freemarker2-CbNPcl_K.js} +1 -1
  90. dw/server/ui/assets/{handlebars-c2OSFqSg.js → handlebars-CMHoTMdw.js} +1 -1
  91. dw/server/ui/assets/{html-BC1m7TzT.js → html-B1rcKnLp.js} +1 -1
  92. dw/server/ui/assets/{htmlMode-DCw1Hrl0.js → htmlMode-DQMxv4HN.js} +1 -1
  93. dw/server/ui/assets/index-CCklaHIx.css +1 -0
  94. dw/server/ui/assets/{index-v21_BHFC.js → index-DVE-KyTo.js} +44 -44
  95. dw/server/ui/assets/{javascript-iJvixZbP.js → javascript-DfusLKYZ.js} +1 -1
  96. dw/server/ui/assets/{jsonMode-BLumFlzb.js → jsonMode-C2b9weES.js} +1 -1
  97. dw/server/ui/assets/{liquid-DoyHxFea.js → liquid-HdjOJvi4.js} +1 -1
  98. dw/server/ui/assets/{lspLanguageFeatures-Dj-hApsG.js → lspLanguageFeatures-7Wi9GY1o.js} +1 -1
  99. dw/server/ui/assets/{mdx-CdLT3soj.js → mdx-Z2wPSwti.js} +1 -1
  100. dw/server/ui/assets/{monaco-D5d18WKE.js → monaco-CbuAR5gL.js} +4 -4
  101. dw/server/ui/assets/{python-CQinAIQD.js → python-w9shy2AN.js} +1 -1
  102. dw/server/ui/assets/{razor-zIDjWUyJ.js → razor-BwsMaofX.js} +1 -1
  103. dw/server/ui/assets/{tsMode-Ck0qjeUP.js → tsMode-BFggAMO5.js} +1 -1
  104. dw/server/ui/assets/{typescript-xZbJO0qx.js → typescript-BTnSomSR.js} +1 -1
  105. dw/server/ui/assets/{workers-vTelFsPt.js → workers-BXJcizSR.js} +1 -1
  106. dw/server/ui/assets/{xml-BJQ-lDBI.js → xml-VXA4fRwS.js} +1 -1
  107. dw/server/ui/assets/{yaml-15EcBrR5.js → yaml-BUBgM2SB.js} +1 -1
  108. dw/server/ui/index.html +2 -2
  109. dw/server/worker_memory.py +30 -1
  110. dw/settings.py +16 -8
  111. dw/shots.py +8 -1
  112. dw/slice_preflight.py +6 -1
  113. dw/sparse_attention.py +7 -5
  114. dw/step.py +5 -2
  115. dw/step_value_checks.py +61 -0
  116. dw/task_domains.py +20 -8
  117. dw/task_problems.py +45 -2
  118. dw/tasks/assess.py +20 -1
  119. dw/tasks/audio_dynamics.py +3 -1
  120. dw/tasks/audio_handlers.py +5 -2
  121. dw/tasks/audio_slice.py +497 -0
  122. dw/tasks/audio_transcription.py +4 -1
  123. dw/tasks/audio_utils.py +105 -229
  124. dw/tasks/chain_repair.py +817 -0
  125. dw/tasks/concat_videos.py +78 -8
  126. dw/tasks/dissolve_videos.py +16 -3
  127. dw/tasks/face_drift.py +37 -4
  128. dw/tasks/h3_latent_upscale.py +317 -7
  129. dw/tasks/interpolate_frames.py +5 -0
  130. dw/tasks/joins.py +144 -25
  131. dw/tasks/lip_sync.py +301 -0
  132. dw/tasks/model_handlers.py +41 -0
  133. dw/tasks/narration_check.py +258 -0
  134. dw/tasks/narration_retime.py +849 -0
  135. dw/tasks/registry.py +28 -4
  136. dw/tasks/script_findings.py +17 -4
  137. dw/tasks/script_take.py +33 -5
  138. dw/tasks/task.py +5 -0
  139. dw/tasks/text_takes.py +229 -0
  140. dw/tasks/timeline_export.py +496 -0
  141. dw/tasks/trim.py +13 -9
  142. dw/tasks/upscale.py +5 -0
  143. dw/tasks/video_handlers.py +26 -0
  144. dw/tasks/video_utils.py +23 -10
  145. dw/tasks/voice_attribution.py +20 -8
  146. dw/tasks/windows.py +2 -8
  147. dw/type_references.py +58 -1
  148. dw/validation.py +92 -4
  149. dw/variable_constraints.py +179 -6
  150. dw/variables.py +19 -0
  151. dw/video_size_errors.py +71 -2
  152. dw/vram_inheritance.py +13 -13
  153. dw/worker.py +47 -9
  154. dw/workflow.py +53 -2
  155. dw/workflow_run.py +25 -10
  156. dw/workflow_schema.json +250 -6
  157. dw_mcp/client.py +10 -5
  158. dw_mcp/diagnose.py +13 -3
  159. dw_mcp/tools_catalog.py +12 -3
  160. dw_mcp/tools_jobs.py +5 -1
  161. dw/server/ui/assets/index-BK7x2KPW.css +0 -1
  162. {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/WHEEL +0 -0
  163. {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/entry_points.txt +0 -0
  164. {diffusers_workflow-0.19.0.dist-info → diffusers_workflow-0.20.0.dist-info}/licenses/LICENSE +0 -0
  165. {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.19.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 camera-and-look vocabulary.
227
+ storyboards and animatics, pieces longer than one clip, and a shared
228
+ camera-and-look vocabulary.
197
229
 
198
230
  ![The same session hours later: shots rendering one at a time, with the agent reporting progress between them](docs/img/claude-generating.png)
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
- - **Long video and caching:** long-video chaining with audio-driven length, and
277
- step-output caching, so re-running a fixed-seed workflow finishes instantly.
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