Skip to content
프로젝트

christian-byrne/audio-separation-nodes-comfyui

GitHub에서 보기

소개

오디오를 보컬, 베이스, 드럼 및 기타 스템으로 분리하고, 다시 합치거나 템포를 맞추고, 오디오를 자르거나 잘라낼 수 있습니다.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+13
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

worklow picture

https://github.com/user-attachments/assets/c5cf20de-a17f-438d-81ac-0c392af669cf

Nodes

Node Description
Audio Separation Separate audio into four stems (bass, drums, other, vocals) using Hybrid Demucs.
Audio Combine Combine two audio tracks by overlaying their waveforms (add, mean, subtract, multiply, divide).
Audio Crop Crop (trim) audio to a specific start and end time.
Audio Tempo Match Match the tempo of two audio tracks by time-stretching both to their average BPM.
Audio Speed Shift Time-stretch or time-compress audio by a given rate.
Audio Get Tempo Get the tempo (BPM) of audio using onset detection.
Audio Video Combine Replace the audio of a VIDEO input with a new audio track.

Examples

Separating Voices in a Video

  Show

[!NOTE]

In order to load videos into the LoadAudio Node, change this line in your Comfy install to include the video's extension (e.g., .mp4)

workflow.json

https://github.com/user-attachments/assets/c5af418e-7137-4c36-b86e-3352cf558ea8

Replacing BGM with StableAudio-Generated BGM

  Show

[!NOTE]

In order to load videos into the LoadAudio Node, change this line in your Comfy install to include the video's extension (e.g., .mp4)

You can use this to replace copyrighted BGM in a video with new BGM. You can set the denoise low, so that the new BGM is still stimilar to the original.

workflow json

https://github.com/user-attachments/assets/a7d5656b-5f8b-439a-936f-6ebb6a0d538a

Remixing Songs with StableAudio

  Show

Separating Song Vocals

  Show

workflow.json

https://github.com/user-attachments/assets/c5cf20de-a17f-438d-81ac-0c392af669cf

Extracting Instrumentals from Songs

  Show

 

Stem Mapping

The Audio Separation node uses Hybrid Demucs to split audio into four stems:

Output Contains
Bass Bass guitar, sub-bass, low-frequency instruments
Drums Drums, percussion, hi-hats
Other Everything else — guitars, keyboards, synths, strings, etc.
Vocals Singing, speech, vocal harmonies

Looking for a specific instrument like guitar? Guitar is included in the Other stem. To isolate guitar, separate first, then use the Audio Combine node to subtract unwanted elements or further process the "Other" output.

Requirements

librosa>=0.10.2,<1
torchaudio>=2.3.0
numpy
moviepy

Installation

  1. If you run ComfyUI inside of a virtual environment, make sure it is activated
  2. git clone this repository in ComfyUI/custom_nodes folder
  3. cd into the cloned repository
  4. pip install -r requirements.txt

Troubleshooting

BadZipFile / "failed finding central directory"

This error means the Hybrid Demucs model checkpoint was corrupted during download. Delete the cached file and restart ComfyUI to trigger a fresh download:

# Default location (Linux/macOS)
rm ~/.cache/torch/hub/checkpoints/*.th

# Windows
del %USERPROFILE%\.cache\torch\hub\checkpoints\*.th

See #21.

ConnectionResetError on Windows
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
ConnectionResetError: [WinError 10054]

This is harmless Windows asyncio noise — it does not affect audio separation results. The error comes from Python's ProactorEventLoop closing connections and can be safely ignored. See #9.

관련 프로젝트 살펴보기

불러오는 중…