diffusers-workflow 0.4.0a3__tar.gz
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.4.0a3/LICENSE +201 -0
- diffusers_workflow-0.4.0a3/MANIFEST.in +3 -0
- diffusers_workflow-0.4.0a3/PKG-INFO +310 -0
- diffusers_workflow-0.4.0a3/README.md +268 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/PKG-INFO +310 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/SOURCES.txt +233 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/dependency_links.txt +1 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/entry_points.txt +6 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/requires.txt +24 -0
- diffusers_workflow-0.4.0a3/diffusers_workflow.egg-info/top_level.txt +1 -0
- diffusers_workflow-0.4.0a3/dw/__init__.py +353 -0
- diffusers_workflow-0.4.0a3/dw/arguments.py +906 -0
- diffusers_workflow-0.4.0a3/dw/cache_blocks.json +16 -0
- diffusers_workflow-0.4.0a3/dw/cache_blocks.py +145 -0
- diffusers_workflow-0.4.0a3/dw/community_pipelines/pipeline_flux_rf_inversion.py +1184 -0
- diffusers_workflow-0.4.0a3/dw/events.py +78 -0
- diffusers_workflow-0.4.0a3/dw/hub_cache.py +289 -0
- diffusers_workflow-0.4.0a3/dw/introspection.py +458 -0
- diffusers_workflow-0.4.0a3/dw/log_setup.py +45 -0
- diffusers_workflow-0.4.0a3/dw/pipeline_processors/chain.py +750 -0
- diffusers_workflow-0.4.0a3/dw/pipeline_processors/config_objects.py +235 -0
- diffusers_workflow-0.4.0a3/dw/pipeline_processors/pipeline.py +1687 -0
- diffusers_workflow-0.4.0a3/dw/pipeline_processors/remote.py +18 -0
- diffusers_workflow-0.4.0a3/dw/previous_results.py +259 -0
- diffusers_workflow-0.4.0a3/dw/prompt_weighting.py +378 -0
- diffusers_workflow-0.4.0a3/dw/repl.py +298 -0
- diffusers_workflow-0.4.0a3/dw/repl_commands.py +808 -0
- diffusers_workflow-0.4.0a3/dw/repl_worker.py +129 -0
- diffusers_workflow-0.4.0a3/dw/result.py +850 -0
- diffusers_workflow-0.4.0a3/dw/run.py +92 -0
- diffusers_workflow-0.4.0a3/dw/schema.py +24 -0
- diffusers_workflow-0.4.0a3/dw/security.py +379 -0
- diffusers_workflow-0.4.0a3/dw/serve.py +70 -0
- diffusers_workflow-0.4.0a3/dw/server/__init__.py +2 -0
- diffusers_workflow-0.4.0a3/dw/server/app.py +588 -0
- diffusers_workflow-0.4.0a3/dw/server/jobs.py +547 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/abap-08VXUWAP.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/apex-BWPQTe0t.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/azcli-Bc_sGQ0U.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/bat-i0X4ZdIN.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/bicep-B5-_aFwp.js +2 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/cameligo-DMUM7wLl.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/clojure-Cm7r79vr.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/codicon-Brq4_Ui5.ttf +0 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/coffee-Ba7i2nA0.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/cpp-C7h46wYY.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/csharp-BKxtCVv1.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/csp-bTuwJoIa.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/css-DIMkf-bt.js +3 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/css.worker-B3ciXF_0.js +93 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/cssMode-CEh6hWi2.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/cypher-CVaqCwHa.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/dart-onAF5SnQ.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/dockerfile-DZFCIeNp.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/ecl-D05T4iGw.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/editor-jjEx9u7D.css +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/editor.api-CExg3_mM.js +847 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/editor.worker-q-txB4vs.js +30 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/elixir-6RTg0lbw.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/flow9-C5_-GSwl.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/freemarker2-DH6orYh2.js +3 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/fsharp-C8Ef5oNN.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/go-C-y9NEjX.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/graphql-fmXr3nnJ.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/handlebars-CbrMVW4Q.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/hcl-CpzslTdj.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/html-YDNPZw2M.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/html.worker-C93Ht9o9.js +506 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/htmlMode-B_zSGWO2.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/index-B7-VcYS-.css +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/index-D_EiPU3b.js +13 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/ini-sBoK_t0W.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/java-BEtHBSE6.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/javascript-dYuBvioq.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/json.worker-B2V3pomh.js +62 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/jsonMode-CUqLM39V.js +7 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/julia-Bri6UV-V.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/kotlin-BOotOW0E.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/less-B9JPFI3C.js +2 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/lexon-CfSJPG6W.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/liquid-D6vxBzMv.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/lspLanguageFeatures-1WJ2palX.js +4 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/lua-CsQS60Ue.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/m3-D-oSqn_W.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/markdown-Cimd5fb3.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/mdx-SHQb6vmD.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/mips-CIPQ_RoX.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/monaco--ixms01u.css +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/monaco-CP-s5rcP.js +56 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/msdax-DauUninz.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/mysql-SOo6toE5.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/objective-c-FvmIjYaQ.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/pascal-DrH0SRf2.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/pascaligo-D-ptJ9y-.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/perl-oz_6vUea.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/pgsql-DTj74zXo.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/php-nr791fC2.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/pla-CopQ2nXW.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/postiats-43DmfD33.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/powerquery-D3hlyOfw.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/powershell-DmHpPYUd.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/protobuf-C531GsRP.js +2 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/pug-Z5eAx3Zn.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/python-x0_EGHq9.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/qsharp-DkqhCAOL.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/r-BwWrilGY.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/razor-BZC4LQDP.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/redis-ClamHrr6.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/redshift-DT7zqm-g.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/restructuredtext-BYgofb2h.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/ruby-DezsRK8O.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/rust-DdL9SqIa.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/sb-CcwsVR0C.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/scala-DHpiXF5c.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/scheme-BeGwcela.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/scss-gp-XZpBa.js +3 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/shell-CC2rA5mh.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/solidity-BEEn4gHE.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/sophia-CRfGWb83.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/sparql-D_Lu-MrJ.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/sql-NEE52Syq.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/st-DbInun42.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/swift-Bxkupp3x.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/systemverilog-Bz4Y3fRF.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/tcl-DISqw1ZD.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/ts.worker-D7T1-Ig5.js +67738 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/tsMode-BTfA6SbD.js +11 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/twig-De2hgUGE.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/typescript-CWA4MsNk.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/typespec-B8J7ngcE.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/vb-DV3o63ZY.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/wgsl-DpFanUEy.js +298 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/workers-CWU0uvj5.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/xml-KmfTm3rg.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/assets/yaml-nFO_dDS6.js +1 -0
- diffusers_workflow-0.4.0a3/dw/server/ui/index.html +17 -0
- diffusers_workflow-0.4.0a3/dw/settings.py +77 -0
- diffusers_workflow-0.4.0a3/dw/step.py +132 -0
- diffusers_workflow-0.4.0a3/dw/tasks/audio_utils.py +266 -0
- diffusers_workflow-0.4.0a3/dw/tasks/background_remover.py +43 -0
- diffusers_workflow-0.4.0a3/dw/tasks/borders.py +113 -0
- diffusers_workflow-0.4.0a3/dw/tasks/concat_videos.py +80 -0
- diffusers_workflow-0.4.0a3/dw/tasks/depth_estimator.py +54 -0
- diffusers_workflow-0.4.0a3/dw/tasks/diffusion_upscale.py +109 -0
- diffusers_workflow-0.4.0a3/dw/tasks/format_messages.py +24 -0
- diffusers_workflow-0.4.0a3/dw/tasks/gather.py +139 -0
- diffusers_workflow-0.4.0a3/dw/tasks/image_to_text.py +43 -0
- diffusers_workflow-0.4.0a3/dw/tasks/image_utils.py +661 -0
- diffusers_workflow-0.4.0a3/dw/tasks/interpolate_frames.py +227 -0
- diffusers_workflow-0.4.0a3/dw/tasks/model_cache.py +39 -0
- diffusers_workflow-0.4.0a3/dw/tasks/pair_audio.py +58 -0
- diffusers_workflow-0.4.0a3/dw/tasks/qr_code.py +19 -0
- diffusers_workflow-0.4.0a3/dw/tasks/restore_faces.py +175 -0
- diffusers_workflow-0.4.0a3/dw/tasks/rife_model.py +192 -0
- diffusers_workflow-0.4.0a3/dw/tasks/segment.py +121 -0
- diffusers_workflow-0.4.0a3/dw/tasks/task.py +474 -0
- diffusers_workflow-0.4.0a3/dw/tasks/tensor_image.py +57 -0
- diffusers_workflow-0.4.0a3/dw/tasks/text_generation.py +168 -0
- diffusers_workflow-0.4.0a3/dw/tasks/text_sections.py +80 -0
- diffusers_workflow-0.4.0a3/dw/tasks/upscale.py +203 -0
- diffusers_workflow-0.4.0a3/dw/tasks/video_utils.py +154 -0
- diffusers_workflow-0.4.0a3/dw/tasks/zoe_depth.py +71 -0
- diffusers_workflow-0.4.0a3/dw/teacache.py +376 -0
- diffusers_workflow-0.4.0a3/dw/teacache_models.json +99 -0
- diffusers_workflow-0.4.0a3/dw/test.py +29 -0
- diffusers_workflow-0.4.0a3/dw/type_helpers.py +68 -0
- diffusers_workflow-0.4.0a3/dw/validate.py +43 -0
- diffusers_workflow-0.4.0a3/dw/variables.py +153 -0
- diffusers_workflow-0.4.0a3/dw/worker.py +517 -0
- diffusers_workflow-0.4.0a3/dw/workflow.py +553 -0
- diffusers_workflow-0.4.0a3/dw/workflow_schema.json +1157 -0
- diffusers_workflow-0.4.0a3/dw/workflows/augment_prompt.json +65 -0
- diffusers_workflow-0.4.0a3/dw/workflows/describe_image.json +58 -0
- diffusers_workflow-0.4.0a3/dw/workflows/h3_context_ir.json +57 -0
- diffusers_workflow-0.4.0a3/dw/workflows/test.json +31 -0
- diffusers_workflow-0.4.0a3/pyproject.toml +66 -0
- diffusers_workflow-0.4.0a3/setup.cfg +4 -0
- diffusers_workflow-0.4.0a3/tests/test_argument_updates.py +255 -0
- diffusers_workflow-0.4.0a3/tests/test_arguments.py +1098 -0
- diffusers_workflow-0.4.0a3/tests/test_audio_utils.py +194 -0
- diffusers_workflow-0.4.0a3/tests/test_borders.py +161 -0
- diffusers_workflow-0.4.0a3/tests/test_cache_blocks.py +431 -0
- diffusers_workflow-0.4.0a3/tests/test_chain.py +688 -0
- diffusers_workflow-0.4.0a3/tests/test_component_pruning.py +176 -0
- diffusers_workflow-0.4.0a3/tests/test_concat_videos.py +133 -0
- diffusers_workflow-0.4.0a3/tests/test_config_objects.py +361 -0
- diffusers_workflow-0.4.0a3/tests/test_configuration_schema.py +109 -0
- diffusers_workflow-0.4.0a3/tests/test_depth_estimator.py +59 -0
- diffusers_workflow-0.4.0a3/tests/test_device.py +59 -0
- diffusers_workflow-0.4.0a3/tests/test_device_helpers.py +282 -0
- diffusers_workflow-0.4.0a3/tests/test_diffusion_upscale.py +188 -0
- diffusers_workflow-0.4.0a3/tests/test_docs_links.py +51 -0
- diffusers_workflow-0.4.0a3/tests/test_events.py +304 -0
- diffusers_workflow-0.4.0a3/tests/test_examples.py +197 -0
- diffusers_workflow-0.4.0a3/tests/test_gather.py +237 -0
- diffusers_workflow-0.4.0a3/tests/test_hub_cache.py +149 -0
- diffusers_workflow-0.4.0a3/tests/test_image_to_text.py +116 -0
- diffusers_workflow-0.4.0a3/tests/test_image_utils.py +163 -0
- diffusers_workflow-0.4.0a3/tests/test_integration.py +233 -0
- diffusers_workflow-0.4.0a3/tests/test_interpolate_frames.py +188 -0
- diffusers_workflow-0.4.0a3/tests/test_introspection.py +112 -0
- diffusers_workflow-0.4.0a3/tests/test_list_images.py +78 -0
- diffusers_workflow-0.4.0a3/tests/test_model_cache.py +145 -0
- diffusers_workflow-0.4.0a3/tests/test_modular_pipeline.py +801 -0
- diffusers_workflow-0.4.0a3/tests/test_pair_audio.py +93 -0
- diffusers_workflow-0.4.0a3/tests/test_pipeline_caching.py +409 -0
- diffusers_workflow-0.4.0a3/tests/test_pipeline_components.py +451 -0
- diffusers_workflow-0.4.0a3/tests/test_previous_results.py +371 -0
- diffusers_workflow-0.4.0a3/tests/test_prompt_parser.py +194 -0
- diffusers_workflow-0.4.0a3/tests/test_prompt_weighting.py +90 -0
- diffusers_workflow-0.4.0a3/tests/test_repl_commands.py +60 -0
- diffusers_workflow-0.4.0a3/tests/test_repl_ergonomics.py +113 -0
- diffusers_workflow-0.4.0a3/tests/test_repl_hierarchical.py +119 -0
- diffusers_workflow-0.4.0a3/tests/test_repl_reorganization.py +144 -0
- diffusers_workflow-0.4.0a3/tests/test_resize_bucket.py +98 -0
- diffusers_workflow-0.4.0a3/tests/test_result.py +897 -0
- diffusers_workflow-0.4.0a3/tests/test_scheduler_config.py +145 -0
- diffusers_workflow-0.4.0a3/tests/test_schema.py +282 -0
- diffusers_workflow-0.4.0a3/tests/test_security.py +360 -0
- diffusers_workflow-0.4.0a3/tests/test_segment.py +156 -0
- diffusers_workflow-0.4.0a3/tests/test_server.py +854 -0
- diffusers_workflow-0.4.0a3/tests/test_step.py +303 -0
- diffusers_workflow-0.4.0a3/tests/test_strip_exif_and_watermark.py +108 -0
- diffusers_workflow-0.4.0a3/tests/test_task.py +183 -0
- diffusers_workflow-0.4.0a3/tests/test_task_discovery.py +124 -0
- diffusers_workflow-0.4.0a3/tests/test_teacache.py +310 -0
- diffusers_workflow-0.4.0a3/tests/test_tensor_image.py +160 -0
- diffusers_workflow-0.4.0a3/tests/test_text_generation.py +311 -0
- diffusers_workflow-0.4.0a3/tests/test_text_sections.py +131 -0
- diffusers_workflow-0.4.0a3/tests/test_type_helpers.py +112 -0
- diffusers_workflow-0.4.0a3/tests/test_variables.py +138 -0
- diffusers_workflow-0.4.0a3/tests/test_video_utils.py +276 -0
- diffusers_workflow-0.4.0a3/tests/test_worker.py +307 -0
- diffusers_workflow-0.4.0a3/tests/test_worker_execute.py +141 -0
- diffusers_workflow-0.4.0a3/tests/test_workflow.py +202 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffusers-workflow
|
|
3
|
+
Version: 0.4.0a3
|
|
4
|
+
Summary: Declarative workflow engine and web UI for Hugging Face Diffusers
|
|
5
|
+
Author: dkackman
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/dkackman/diffusers-workflow
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: torch>=2.0.0
|
|
20
|
+
Requires-Dist: diffusers
|
|
21
|
+
Requires-Dist: transformers
|
|
22
|
+
Requires-Dist: accelerate
|
|
23
|
+
Requires-Dist: huggingface_hub
|
|
24
|
+
Requires-Dist: numpy
|
|
25
|
+
Requires-Dist: Pillow
|
|
26
|
+
Requires-Dist: av
|
|
27
|
+
Requires-Dist: qrcode
|
|
28
|
+
Requires-Dist: jsonschema
|
|
29
|
+
Requires-Dist: concurrent-log-handler
|
|
30
|
+
Requires-Dist: controlnet-aux
|
|
31
|
+
Requires-Dist: soundfile
|
|
32
|
+
Provides-Extra: server
|
|
33
|
+
Requires-Dist: fastapi; extra == "server"
|
|
34
|
+
Requires-Dist: uvicorn[standard]; extra == "server"
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: pytest; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
38
|
+
Requires-Dist: black; extra == "dev"
|
|
39
|
+
Requires-Dist: flake8; extra == "dev"
|
|
40
|
+
Requires-Dist: build; extra == "dev"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
[](https://github.com/dkackman/diffusers-workflow/actions/workflows/github-code-scanning/codeql)
|
|
44
|
+
|
|
45
|
+
# diffusers-workflow
|
|
46
|
+
|
|
47
|
+
A declarative workflow engine and web UI for the [Hugging Face Diffusers library](https://github.com/huggingface/diffusers). Define image/video generation pipelines in JSON — with full access to the configuration diffusers exposes — and run them from the command line, an interactive REPL, or a browser.
|
|
48
|
+
|
|
49
|
+
**Python 3.10-3.14 | CUDA (NVIDIA) | MPS (Apple Silicon) | CPU**
|
|
50
|
+
|
|
51
|
+
<picture>
|
|
52
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/img/ui-workflows-dark.png">
|
|
53
|
+
<img alt="The workflow browser: every workflow as a card with its description, output kinds, and variables" src="docs/img/ui-workflows.png">
|
|
54
|
+
</picture>
|
|
55
|
+
|
|
56
|
+
## Features
|
|
57
|
+
|
|
58
|
+
- **Web UI** — browse and run workflows, edit them in introspection-driven forms, watch jobs stream live progress, manage generated output and the models on disk. `python -m dw.serve` and open a browser. See [Server & Web UI](docs/SERVER.md).
|
|
59
|
+
- **Declarative JSON workflows** with variable substitution and cross-step data flow
|
|
60
|
+
- **Multi-step pipelines** — chain text-to-image, image-to-video, inpainting, ControlNet
|
|
61
|
+
- **Reproducible by construction** — outputs embed their full workflow definition and seed; any image in the gallery reopens as the exact workflow that made it
|
|
62
|
+
- **Long-video chaining** — run a video pipeline once per segment and stitch the segments into one clip, with audio-driven length and frame-to-frame continuity
|
|
63
|
+
- **Quantization** — BitsAndBytes, TorchAO, GGUF, SDNQ, optimum-quanto
|
|
64
|
+
- **Inference acceleration** — TeaCache, FirstBlockCache, FasterCache, MagCache, TaylorSeerCache
|
|
65
|
+
- **Prompt weighting** — A1111-style `(word:1.5)` syntax with long prompt support
|
|
66
|
+
- **LoRA and IP-Adapter** support
|
|
67
|
+
- **Composable workflows** from multiple JSON files with `builtin:` references
|
|
68
|
+
- **Utility tasks** — upscaling, face restoration, segmentation, captioning, frame interpolation, QR codes, and more
|
|
69
|
+
- **Interactive REPL** with persistent GPU model caching (2-4x faster iteration)
|
|
70
|
+
- **Cross-platform** — CUDA, MPS (Apple Silicon), and CPU
|
|
71
|
+
|
|
72
|
+
## Installation
|
|
73
|
+
|
|
74
|
+
### Linux / macOS
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
bash ./install.sh
|
|
78
|
+
source ./activate
|
|
79
|
+
python -m dw.test
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Windows
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
.\install.ps1
|
|
86
|
+
.\venv\scripts\activate
|
|
87
|
+
python -m dw.test
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The install scripts detect your Python version, create a virtual environment, and install all dependencies including platform-specific packages (bitsandbytes on CUDA, fp4-fp8-for-torch-mps on macOS).
|
|
91
|
+
|
|
92
|
+
## The Web UI
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
python -m dw.serve
|
|
96
|
+
# diffusers-workflow server on http://127.0.0.1:8765
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Everything the engine does, in a browser backed by a persistent GPU worker — models stay loaded between runs.
|
|
100
|
+
|
|
101
|
+
**A form-based editor with the real pipeline signatures.** Forms and argument autocomplete are generated by introspecting diffusers itself, so every knob a pipeline exposes is available — with its documentation — without leaving the browser. A split view puts the JSON beside the form, both editable; validation catches schema errors *and* argument typos (by checking the pipeline's actual call signature) before any model loads.
|
|
102
|
+
|
|
103
|
+

|
|
104
|
+
|
|
105
|
+
**A gallery where every image is a recipe.** Outputs embed their workflow and seed; *open as workflow* drops the definition into the editor with the seed pinned, ready to reproduce or riff on.
|
|
106
|
+
|
|
107
|
+

|
|
108
|
+
|
|
109
|
+
**A model manager for the disk your models actually consume.** The Hugging Face hub cache, inventoried: sizes, revisions, last-used dates, free space — download new models by id with live progress, delete with one click.
|
|
110
|
+
|
|
111
|
+

|
|
112
|
+
|
|
113
|
+
Jobs queue, stream progress live (per denoising step), cancel cooperatively, and persist to a searchable history. See [Server & Web UI](docs/SERVER.md) for the pages and the HTTP API.
|
|
114
|
+
|
|
115
|
+
## Usage
|
|
116
|
+
|
|
117
|
+
### Run a Workflow
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
python -m dw.run examples/flux/FluxDev.json
|
|
121
|
+
python -m dw.run examples/flux/FluxDev.json prompt="a cat" num_images_per_prompt=4
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Validate a Workflow
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
python -m dw.validate examples/flux/FluxDev.json
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Interactive REPL
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
python -m dw.repl
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```text
|
|
137
|
+
dw> workflow load flux/FluxDev
|
|
138
|
+
dw> arg set prompt="a beautiful sunset"
|
|
139
|
+
dw> workflow run
|
|
140
|
+
[... models load once ...]
|
|
141
|
+
|
|
142
|
+
dw> arg set prompt="a starry night"
|
|
143
|
+
dw> workflow run
|
|
144
|
+
Reusing loaded models from cache
|
|
145
|
+
[... 2-4x faster ...]
|
|
146
|
+
|
|
147
|
+
dw> memory show
|
|
148
|
+
dw> ? # show all command groups
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
See [REPL Commands](docs/REPL_COMMANDS.md) and [Worker Guide](docs/REPL_WORKER_GUIDE.md).
|
|
152
|
+
|
|
153
|
+
## Workflow Examples
|
|
154
|
+
|
|
155
|
+
### Simple Image Generation
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"id": "flux_example",
|
|
160
|
+
"variables": {
|
|
161
|
+
"prompt": "an apple",
|
|
162
|
+
"num_images_per_prompt": 1
|
|
163
|
+
},
|
|
164
|
+
"steps": [
|
|
165
|
+
{
|
|
166
|
+
"name": "main",
|
|
167
|
+
"pipeline": {
|
|
168
|
+
"configuration": {
|
|
169
|
+
"component_type": "FluxPipeline",
|
|
170
|
+
"offload": "sequential"
|
|
171
|
+
},
|
|
172
|
+
"from_pretrained_arguments": {
|
|
173
|
+
"model_name": "black-forest-labs/FLUX.1-dev",
|
|
174
|
+
"torch_dtype": "torch.bfloat16"
|
|
175
|
+
},
|
|
176
|
+
"arguments": {
|
|
177
|
+
"prompt": "variable:prompt",
|
|
178
|
+
"num_inference_steps": 25,
|
|
179
|
+
"num_images_per_prompt": "variable:num_images_per_prompt",
|
|
180
|
+
"guidance_scale": 3.5
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"result": {
|
|
184
|
+
"content_type": "image/jpeg"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Override variables from the command line:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
python -m dw.run flux_example.json prompt="an orange" num_images_per_prompt=4
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Multi-Step Workflow (Image to Video)
|
|
198
|
+
|
|
199
|
+
Chain steps using `previous_result:step_name` to pass outputs between steps:
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"id": "img2vid",
|
|
204
|
+
"steps": [
|
|
205
|
+
{
|
|
206
|
+
"name": "image_generation",
|
|
207
|
+
"pipeline": {
|
|
208
|
+
"configuration": {
|
|
209
|
+
"component_type": "StableDiffusion3Pipeline",
|
|
210
|
+
"offload": "model"
|
|
211
|
+
},
|
|
212
|
+
"from_pretrained_arguments": {
|
|
213
|
+
"model_name": "stabilityai/stable-diffusion-3.5-large",
|
|
214
|
+
"torch_dtype": "torch.bfloat16"
|
|
215
|
+
},
|
|
216
|
+
"arguments": {
|
|
217
|
+
"prompt": "a luminous owl in a neon forest",
|
|
218
|
+
"num_inference_steps": 25,
|
|
219
|
+
"guidance_scale": 4.5
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"result": { "content_type": "image/png" }
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "video",
|
|
226
|
+
"pipeline": {
|
|
227
|
+
"configuration": {
|
|
228
|
+
"component_type": "CogVideoXImageToVideoPipeline",
|
|
229
|
+
"offload": "sequential",
|
|
230
|
+
"vae": { "configuration": { "enable_slicing": true, "enable_tiling": true } }
|
|
231
|
+
},
|
|
232
|
+
"from_pretrained_arguments": {
|
|
233
|
+
"model_name": "THUDM/CogVideoX-5b-I2V",
|
|
234
|
+
"torch_dtype": "torch.bfloat16"
|
|
235
|
+
},
|
|
236
|
+
"arguments": {
|
|
237
|
+
"image": "previous_result:image_generation",
|
|
238
|
+
"prompt": "The owl blinks slowly",
|
|
239
|
+
"num_inference_steps": 50,
|
|
240
|
+
"num_frames": 49,
|
|
241
|
+
"guidance_scale": 6
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"result": { "content_type": "video/mp4" }
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Inference Acceleration
|
|
251
|
+
|
|
252
|
+
Speed up generation with built-in diffusers caching or TeaCache:
|
|
253
|
+
|
|
254
|
+
```json
|
|
255
|
+
"configuration": {
|
|
256
|
+
"component_type": "FluxPipeline",
|
|
257
|
+
"cache": { "type": "first_block", "threshold": 0.05 }
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
```json
|
|
262
|
+
"configuration": {
|
|
263
|
+
"component_type": "FluxPipeline",
|
|
264
|
+
"teacache": { "rel_l1_thresh": 0.6 }
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Prompt Weighting
|
|
269
|
+
|
|
270
|
+
Use A1111-style syntax for per-token weighting:
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
"configuration": {
|
|
274
|
+
"component_type": "FluxPipeline",
|
|
275
|
+
"prompt_weighting": true
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
```text
|
|
280
|
+
a (photorealistic:1.4) portrait with (bright red hair:1.3) and [freckles]
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## JSON Schema
|
|
284
|
+
|
|
285
|
+
**Interactive schema browser:** [View Schema](https://json-schema.app/view/%23?url=https%3A%2F%2Fraw.githubusercontent.com%2Fdkackman%2Fdiffusers-workflow%2Frefs%2Fheads%2Fmaster%2Fdw%2Fworkflow_schema.json)
|
|
286
|
+
|
|
287
|
+
See [examples/](examples/) for more workflow files.
|
|
288
|
+
|
|
289
|
+
## Documentation
|
|
290
|
+
|
|
291
|
+
### Guides
|
|
292
|
+
|
|
293
|
+
- [Server & Web UI](docs/SERVER.md) — The web UI, jobs API, and introspection service
|
|
294
|
+
- [Workflow Guide](docs/WORKFLOW_GUIDE.md) — JSON structure, variables, steps, data flow
|
|
295
|
+
- [Quantization](docs/QUANTIZATION.md) — BitsAndBytes, TorchAO, GGUF, SDNQ
|
|
296
|
+
- [Inference Acceleration](docs/ACCELERATION.md) — torch.compile, FirstBlockCache, MagCache, TaylorSeer, TeaCache
|
|
297
|
+
- [Fast on 24GB](docs/RECIPES_24GB.md) — Recommended speed/memory configurations per model family
|
|
298
|
+
- [LoRA](docs/LORAS.md) — Loading and stacking LoRA adapters
|
|
299
|
+
- [IP-Adapter](docs/IP_ADAPTER.md) — Image-prompt conditioning
|
|
300
|
+
- [Prompt Weighting](docs/PROMPT_WEIGHTING.md) — A1111-style syntax
|
|
301
|
+
- [Tasks](docs/TASKS.md) — Image processing, ControlNet preprocessors, utilities
|
|
302
|
+
|
|
303
|
+
### Reference
|
|
304
|
+
|
|
305
|
+
- [REPL Commands](docs/REPL_COMMANDS.md) — Interactive REPL command reference
|
|
306
|
+
- [Worker Guide](docs/REPL_WORKER_GUIDE.md) — GPU persistence and troubleshooting
|
|
307
|
+
- [Dependencies](docs/DEPENDENCIES.md) — Installation details
|
|
308
|
+
- [Security](docs/SECURITY.md) — Security model
|
|
309
|
+
- [Testing](docs/TESTING.md) — Running the test suite
|
|
310
|
+
- [Releasing](docs/RELEASING.md) — Cutting a release from a version tag
|