From f836e69346844c65dcf2418346db9a9a9b32a445 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 21 Jul 2024 16:16:45 -0400 Subject: [PATCH] Fix bug with SaveAudio node with --gpu-only --- comfy_extras/nodes_audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_audio.py b/comfy_extras/nodes_audio.py index 64d241e..6f0e263 100644 --- a/comfy_extras/nodes_audio.py +++ b/comfy_extras/nodes_audio.py @@ -147,7 +147,7 @@ class SaveAudio: for x in extra_pnginfo: metadata[x] = json.dumps(extra_pnginfo[x]) - for (batch_number, waveform) in enumerate(audio["waveform"]): + for (batch_number, waveform) in enumerate(audio["waveform"].cpu()): filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) file = f"{filename_with_batch_num}_{counter:05}_.flac"