오디오 AI 가이드

Demucs 및 HT-Demucs 음악 소스 분리

Demucs는 Meta의 오픈 소스 음원 분리 모델입니다. HT-Demucs(Hybrid Transformer Demucs)는 파형 및 스펙트로그램 처리를 사용하여 노래를 보컬, 드럼, 베이스 및 기타 줄기로 분할합니다.

이 가이드를 들어보세요AI 내레이션 · ~8 min

이 페이지에서9분 읽기
  1. 주요 시사점
  2. 심층 분석
  3. Separating a song into four stems with Demucs
  4. 실제 구현
  5. Demucs와 HT-Demucs 음원 분리의 미래
  6. 실천에 옮기기
  7. 출처 및 추가 자료
  8. 계속 탐색하세요
  9. 자주 묻는 질문

주요 시사점

  1. Demucs is an open-source model family that separates a mixed song into vocals, drums, bass and other stems.
  2. The 2019 Demucs paper worked directly on waveforms and averaged 6.3 dB SDR on MUSDB18, beating the spectrogram methods it was compared against.
  3. Hybrid Demucs combined waveform and spectrogram branches and won Sony's Music Demixing Challenge 2021.
  4. Hybrid Transformer Demucs reached 9.20 dB SDR on MUSDB in 2022 using a cross-domain Transformer and 800 extra training songs.
  5. Separated stems still contain bleed between instruments, and the six-source model's piano output is described by its own documentation as weak.
  6. The official Meta repository is archived, and running the default model needs about 7 GB of GPU memory or runs slowly on a CPU.

심층 분석

Music source separation is the task of taking a mixed recording, the single stereo file that ends up on a streaming service, and recovering the individual parts that were added together to make it. The standard research setting asks for four stems: vocals, drums, bass and other, where other holds everything else. Demucs is a family of deep learning models for this task created by Alexandre Défossez and colleagues at Meta AI (then Facebook AI Research). The code and pretrained models are free on GitHub, and they became a common default for musicians, remixers, educators and researchers.

Most earlier systems worked on a spectrogram, a picture of sound that shows how much energy each frequency has at each moment, computed with the short-time Fourier transform (STFT). A network predicts a mask for each source, a set of values between 0 and 1 that says what fraction of each time-frequency cell belongs to, say, the vocals, and the masked spectrogram is turned back into audio. The weakness is phase, the timing information in each frequency component, which masks usually copy from the mixture rather than estimate. The original Demucs paper, posted in November 2019 by Défossez, Nicolas Usunier, Léon Bottou and Francis Bach, instead worked waveform to waveform: raw audio samples in, raw audio samples out, so the network learns phase as well as loudness.

That first model was a U-Net, an encoder-decoder network with skip connections that pass detail from each encoder layer straight to the matching decoder layer. The encoder is a stack of strided one-dimensional convolutions that shrink the time axis while adding channels, so deep layers summarize longer stretches of sound. A bidirectional LSTM, a recurrent layer that reads the compressed sequence forwards and backwards, sits in the middle to capture longer context. The decoder mirrors the encoder with transposed convolutions and outputs one waveform per source. The paper reported an average of 6.3 dB signal-to-distortion ratio (SDR) on the MUSDB18 test set with data augmentation, beating every architecture it compared against, and 6.8 dB with 150 extra training songs. For bass, that extra-data result surpassed the ideal ratio mask, an oracle that knows the true sources.

The second milestone was Hybrid Demucs, described by Défossez in November 2021 for the ISMIR 2021 Music Demixing (MDX) Workshop. It runs two U-Net branches in parallel, one on the waveform and one on the spectrogram, which share layers in the middle, and lets training decide which representation suits each source. Hybrid Demucs won the Music Demixing Challenge 2021 organized by Sony. It improved SDR by 1.4 dB across sources on MUSDB HQ, and in human listening tests scored 2.83 out of 5 for overall quality against 2.36 for the waveform-only version, with fewer contamination artifacts than the second-place challenge entry.

The third milestone, Hybrid Transformer Demucs (HT Demucs), was posted to arXiv in November 2022 by Simon Rouard, Francisco Massa and Défossez. It keeps the two-branch hybrid design but replaces the innermost layers with a cross-domain Transformer encoder, a stack of attention layers that let every time step look at every other and let the waveform and spectrogram branches exchange information. The paper found the Transformer performed poorly when trained only on the 100 MUSDB training songs but beat Hybrid Demucs by 0.45 dB when both used 800 extra songs. With sparse attention, which skips most pairwise comparisons so longer clips fit in memory, and per-source fine-tuning, it reached 9.20 dB SDR, then state of the art on MUSDB with extra data. HT Demucs is the v4 release and the default model in the package.

Compared with alternatives, Demucs sits between pure spectrogram maskers such as Open-Unmix, which scored 5.33 dB in the 2019 paper's comparison table, and pure waveform models such as Conv-TasNet, a speech separation network the 2019 paper adapted to music. The paper found Conv-TasNet scored well on numbers but human listeners heard significant artifacts, while Demucs sounded more natural. The hybrid design was a direct answer to the finding that some sources, such as sustained vocals, are easier in the frequency domain while transient drums are easier in the time domain.

Limits are audible. The 2019 paper's listeners noticed bleeding, where one instrument leaks into another stem, especially between vocals and other. The six-source model's piano stem is described in the README as weak. Scores come from MUSDB18, which holds 150 tracks and about 10 hours of mostly Western popular music, so results on orchestral, heavily processed or non-Western material may differ. The models also cannot recover what was never recorded separately: reverb shared by all parts, or two instruments playing the same note in the same register, will blur. Training data rights matter too, since MUSDB18 is restricted to academic use.

In practice, Demucs installs as a Python package and runs from the command line. The README says it needs at least 3 GB of GPU memory, about 7 GB with default settings, and a segment option lowers memory use at some cost in quality. On a CPU it takes roughly 1.5 times the length of the track. The original Meta repository is now archived and read-only because the author no longer works at Meta, and the README points to a personal fork maintained for important bug fixes. Separated stems are estimates, not the original multitracks, so anyone releasing a remix still needs the rights to the source recording.

03실제 사례

Separating a song into four stems with Demucs

  1. Install the package with pip install demucs on a computer with Python, ideally with a GPU that has at least 3 GB of memory.

  2. Run demucs on a song file you have the rights to use; the default htdemucs model writes four WAV files: drums, bass, vocals and other.

  3. If memory runs out, add a smaller segment value, or add -d cpu and expect processing to take about 1.5 times the song's length.

  4. Listen to each stem on headphones and note bleed, for example cymbals faintly audible in the vocal stem.

  5. Re-run with -n htdemucs_ft and compare the vocal stems; the fine-tuned model is slower but may be slightly cleaner.

  6. Load all four stems into an audio editor at zero gain and play them together to check they add back up to the original mix.

그것이 보여주는 것

Four stem files and a written note on audible artifacts per stem. The sum check should sound almost identical to the original song; any obvious difference means a stem is missing content or a file was misaligned.

실제 구현

Making a karaoke track by running demucs --two-stems=vocals on a song, which the official README documents as a way to separate the vocals from everything else in one pass.

Isolating a drum or bass part for practice or transcription with the default htdemucs model, then checking the stem by ear for bleed from other instruments.

Using Demucs inside Ultimate Vocal Remover, an MIT-licensed desktop app whose credits list Demucs alongside MDX-Net and VR architectures as bundled separation models.

Benchmarking a new separation research model against Demucs on MUSDB18-HQ, the 150-track dataset of uncompressed stereo stems at 44.1 kHz used throughout the Demucs papers.

Splitting guitar and piano as extra stems with the experimental htdemucs_6s model, while noting the README's warning that its piano output has notable bleeding and artifacts.

Demucs와 HT-Demucs 음원 분리의 미래

Open problems in music source separation are now less about average benchmark scores and more about artifacts, data and scope. MUSDB18 is small and genre-limited, and the 2022 HT Demucs paper showed that its Transformer only beat older designs once 800 extra training songs were added, which points to data rather than architecture as the main constraint. Licensed multitrack data is scarce, and the benchmark itself is restricted to academic use. A second direction is more and finer stems, such as guitar, piano, strings and individual voices; the experimental six-source Demucs model shows the difficulty, since its own README calls the piano output weak. Evaluation is a third issue: SDR rewards low error energy but the 2021 Hybrid Demucs paper still relied on human listening tests to judge contamination and naturalness. Finally, the original Meta repository has been archived and is no longer maintained, so continued development depends on forks and on newer research systems that build on Demucs ideas.

실천에 옮기기

왜 중요한가요?

  • 접근 및 도달. 전사, 내레이션, 음성 인터페이스를 통해 접근성을 향상시킵니다.
  • 비용 및 예산. 미디어 팀은 더 적은 예산으로 세련된 오디오를 더 빠르게 출시할 수 있습니다.
  • 속도와 규모. 고객 대면 시스템은 음성 상호 작용을 더 큰 규모로 처리할 수 있습니다.

조심하세요

  • 동의가 없으면 음성 오용 및 명의 도용 위험이 높아집니다.
  • 악센트, 방언 또는 시끄러운 환경에서는 정확도가 떨어질 수 있습니다.
  • 합성 오디오는 명확한 라벨링이 없으면 실제 음성으로 오인될 수 있습니다.

다음 단계

  1. 음성 캡처, 복제 및 재사용에 대한 명시적인 동의를 얻습니다.
  2. 다양한 화자와 배경 조건에서 품질을 테스트합니다.
  3. 사람이 출력을 검토하거나 승인해야 하는 시기를 정의합니다.
  4. 합성 오디오에 라벨을 붙이고 책임을 묻기 위해 출처 기록을 보관하세요.

출처 및 추가 자료

  1. arXivMusic Source Separation in the Waveform Domain
  2. arXiv (ISMIR 2021 MDX Workshop)Hybrid Spectrogram and Waveform Source Separation
  3. arXiv (ICASSP 2023)Hybrid Transformers for Music Source Separation
  4. GitHub (Meta Research)facebookresearch/demucs: Code for the paper Hybrid Spectrogram and Waveform Source Separation
  5. SigSepMUSDB18 dataset
  6. GitHubUltimate Vocal Remover GUI

계속 탐색하세요

무료 뉴스레터

일일 AI 브리핑 받기

매주 평일 아침마다 3개의 검증된 AI 스토리를 일반 영어로 작성합니다. 무료이며, 광고 없음.

매주 평일마다 한 번 이메일을 받습니다. 한 번 클릭으로 구독 해지. 주소를 판매하거나 공유하지 않습니다.

자신을 테스트해 보세요

Take the Demucs and HT-Demucs Music Source Separation quiz

모든 답변에 즉각적인 피드백과, 과정을 통과하면 검증 가능한 ID가 있는 공유 가능한 인증서를 제공합니다.

퀴즈 시작

무료 AI 교육을 지원합니다. AI Understanding는 501(c)(3) 비영리 단체입니다 — 광고 없음, 유료 장벽 없음, 영원히. 기부하기

자주 묻는 질문

Demucs 및 HT-Demucs 음원 분리란 무엇입니까?

Demucs는 Meta의 오픈 소스 음원 분리 모델입니다. HT-Demucs(Hybrid Transformer Demucs)는 파형 및 스펙트로그램 처리를 사용하여 노래를 보컬, 드럼, 베이스 및 기타 줄기로 분할합니다.

Demucs는 완성된 노래에 무엇을 합니까?

Demucs는 스테레오 믹스를 개별 악기와 보컬 스템으로 분할하여 음악 소스 분리를 ​​수행합니다.

Hybrid Demucs를 '하이브리드'로 만드는 이유는 무엇입니까?

Hybrid Demucs는 시간 영역 파형 분기와 스펙트로그램 분기를 결합하여 이들의 장점을 융합합니다.

MUSDB의 분리 품질에 대해 원래 Demucs 논문에서 보고한 측정 기준은 무엇입니까?

원본 논문에서는 MUSDB의 음악 소스 분리에 대한 평균 SDR을 보고합니다. 결과는 해당 벤치마크 및 설정에 속합니다.

원래 Demucs 프로젝트와 관련된 연구 기관은 무엇입니까?

원본 Demucs 논문에는 FAIR 소속이 나열되어 있으며 공식 프로젝트 저장소는 facebookresearch에 있습니다. 이는 프로젝트의 연구 출처를 설명합니다.

초기 Demucs가 원시 파형에서 직접 작동한 이유는 무엇입니까?

파형 영역에서 작동하면 스펙트로그램 크기 방법을 종종 무시하고 추정해야 하는 위상이 보존됩니다.