From 5b3d967ed48603a1e11186c41da04d47bd359e97 Mon Sep 17 00:00:00 2001 From: LucipherDev Date: Thu, 27 Feb 2025 08:47:59 +0530 Subject: [PATCH] Release v1.3.0 - Add offloading model to cpu - closes #17, #18 --- README.md | 4 ++- example_workflows/tangoflux_example.json | 36 ++++++++++++++++-------- pyproject.toml | 2 +- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 708cd1b..fe5bab7 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ python install.py ## Example Workflow -![example_workflow](https://github.com/user-attachments/assets/610d2ccb-c827-4797-9d8f-50b193d43db3) +![example_workflow](https://github.com/user-attachments/assets/eb4cb6c9-f9d9-4d64-a59a-00911b1aed61) ## Usage @@ -41,6 +41,8 @@ python install.py The nodes can be found in "TangoFlux" category as `TangoFluxLoader`, `TangoFluxSampler`, `TangoFluxVAEDecodeAndPlay`. +If you are on low VRAM, try enabling `offload_model_to_cpu` in `TangoFluxSampler`. + The `audio` output of the `TangoFluxVAEDecodeAndPlay` can be used as audio input for the[ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite) `VideoCombine` node. ***(This will not sync audio to the video)*** ![teacache_options](https://github.com/user-attachments/assets/29e676d9-902b-4ea2-9f72-18d3607996e8) diff --git a/example_workflows/tangoflux_example.json b/example_workflows/tangoflux_example.json index 6adf6c1..bcff854 100644 --- a/example_workflows/tangoflux_example.json +++ b/example_workflows/tangoflux_example.json @@ -11,7 +11,7 @@ ], "size": [ 315, - 150 + 192 ], "flags": {}, "order": 2, @@ -28,7 +28,13 @@ "link": 3 } ], - "outputs": [], + "outputs": [ + { + "name": "audio", + "type": "AUDIO", + "links": null + } + ], "properties": { "Node name for S&R": "TangoFluxVAEDecodeAndPlay" }, @@ -36,7 +42,8 @@ 32, "TangoFlux", "wav", - true + true, + "" ] }, { @@ -89,7 +96,7 @@ ], "size": [ 400, - 220 + 244 ], "flags": {}, "order": 1, @@ -119,9 +126,10 @@ 50, 3, 10, - 310686137950669, + 214076069052112, "randomize", - 1 + 1, + false ] } ], @@ -155,12 +163,16 @@ "config": {}, "extra": { "ds": { - "scale": 0.8630044843049327, - "offset": [ - 95.83333333333337, - -8.663289166017137 - ] - } + "scale": 1, + "offset": { + "0": 0, + "1": 0 + } + }, + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true }, "version": 0.4 } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c61b814..790310f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-tangoflux" description = "ComfyUI Custom Nodes for 'TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching'. This generates high-quality 44.1kHz audio up to 30 seconds using just a text prompt." -version = "1.2.1" +version = "1.3.0" license = {file = "LICENSE"} dependencies = ["torchaudio", "diffusers", "accelerate", "tqdm"]