From 279f70359147385bf57145d8461cf7a465b90965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 24 Nov 2025 15:53:15 +0100 Subject: [PATCH] fix: correct DiffRhythm workflow parameter order to match function signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The parameters must match the diffrhythmgen() function signature order, not the INPUT_TYPES order. The function has 'edit' as the first parameter. Correct widgets_values order (11 parameters): 0: edit (boolean) 1: model (string) 2: style_prompt (string) 3: lyrics_or_edit_lyrics (string) 4: edit_segments (string) 5: odeint_method (enum) 6: steps (int) 7: cfg (int) 8: quality_or_speed (enum) 9: unload_model (boolean) 10: seed (int) Note: style_audio_or_edit_song comes from input connection (not in widgets) Note: chunked parameter is hidden (not in widgets) Updated workflows: - diffrhythm-simple-t2m-v1.json - diffrhythm-random-generation-v1.json - diffrhythm-reference-based-v1.json - diffrhythm-full-length-t2m-v1.json 🤖 Generated with Claude Code Co-Authored-By: Claude --- .../text-to-music/diffrhythm-full-length-t2m-v1.json | 11 +++++------ .../diffrhythm-random-generation-v1.json | 11 +++++------ .../text-to-music/diffrhythm-reference-based-v1.json | 11 +++++------ .../text-to-music/diffrhythm-simple-t2m-v1.json | 9 +++++---- 4 files changed, 20 insertions(+), 22 deletions(-) diff --git a/comfyui/workflows/text-to-music/diffrhythm-full-length-t2m-v1.json b/comfyui/workflows/text-to-music/diffrhythm-full-length-t2m-v1.json index b6f6934..97df23a 100644 --- a/comfyui/workflows/text-to-music/diffrhythm-full-length-t2m-v1.json +++ b/comfyui/workflows/text-to-music/diffrhythm-full-length-t2m-v1.json @@ -21,18 +21,17 @@ "Node name for S&R": "DiffRhythmRun" }, "widgets_values": [ + false, "cfm_full_model.pt", "Cinematic orchestral piece with soaring strings, powerful brass, and emotional piano melodies building to an epic crescendo", - true, + "", + "[-1, 20], [60, -1]", "euler", 30, 4, "quality", - 123, - false, - "", - "", - "" + true, + 123 ], "title": "DiffRhythm Full-Length Text-to-Music (4m45s)" }, diff --git a/comfyui/workflows/text-to-music/diffrhythm-random-generation-v1.json b/comfyui/workflows/text-to-music/diffrhythm-random-generation-v1.json index 493c227..0a471cb 100644 --- a/comfyui/workflows/text-to-music/diffrhythm-random-generation-v1.json +++ b/comfyui/workflows/text-to-music/diffrhythm-random-generation-v1.json @@ -21,18 +21,17 @@ "Node name for S&R": "DiffRhythmRun" }, "widgets_values": [ + false, "cfm_model_v1_2.pt", "", - true, + "", + "[-1, 20], [60, -1]", "euler", 30, 1, "speed", - -1, - false, - "", - "", - "" + true, + -1 ], "title": "DiffRhythm Random Generation (No Prompt)" }, diff --git a/comfyui/workflows/text-to-music/diffrhythm-reference-based-v1.json b/comfyui/workflows/text-to-music/diffrhythm-reference-based-v1.json index 53e7c55..5163701 100644 --- a/comfyui/workflows/text-to-music/diffrhythm-reference-based-v1.json +++ b/comfyui/workflows/text-to-music/diffrhythm-reference-based-v1.json @@ -51,18 +51,17 @@ "Node name for S&R": "DiffRhythmRun" }, "widgets_values": [ + false, "cfm_model_v1_2.pt", "Energetic rock music with driving guitar riffs and powerful drums", - true, + "", + "[-1, 20], [60, -1]", "euler", 30, 5, "speed", - 456, - false, - "", - "", - "" + true, + 456 ], "title": "DiffRhythm Reference-Based Generation" }, diff --git a/comfyui/workflows/text-to-music/diffrhythm-simple-t2m-v1.json b/comfyui/workflows/text-to-music/diffrhythm-simple-t2m-v1.json index f25f1bb..726e7e9 100644 --- a/comfyui/workflows/text-to-music/diffrhythm-simple-t2m-v1.json +++ b/comfyui/workflows/text-to-music/diffrhythm-simple-t2m-v1.json @@ -21,16 +21,17 @@ "Node name for S&R": "DiffRhythmRun" }, "widgets_values": [ + false, "cfm_model_v1_2.pt", "Upbeat electronic dance music with energetic beats and synthesizer melodies", - true, + "", + "[-1, 20], [60, -1]", "euler", 30, 4, "speed", - 42, - false, - "[-1, 20], [60, -1]" + true, + 42 ], "title": "DiffRhythm Text-to-Music (95s)" },