"tests/pipelines/vscode:/vscode.git/clone" did not exist on "98c1a8e793b3f78f40c612d31a8501cc67b56259"
Commit f836e693 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix bug with SaveAudio node with --gpu-only

parent 5b69cfe7
...@@ -147,7 +147,7 @@ class SaveAudio: ...@@ -147,7 +147,7 @@ class SaveAudio:
for x in extra_pnginfo: for x in extra_pnginfo:
metadata[x] = json.dumps(extra_pnginfo[x]) 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)) filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.flac" file = f"{filename_with_batch_num}_{counter:05}_.flac"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment