All models

hdemucs_low

Demucs in hybrid form: parallel spectrogram and waveform branches merged mid-network.

Audio and speech · 565 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (241 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
93.7K
Operations
565
Framework
PyTorch
Recurrent
Yes
Published
2021
Source
demucs 4.1.0
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5307
Graph hash
297751d443132a75fda6b2d1430c72070e368a84bdaeded7301518d557521c0e
Skeleton hash
1966c63bd32d5572eae612ab1d85609721d6a20959f1e7ba9d5b7add0137466b
Architecture hash
d9ce60c7d553f26e13e7f22f318645d5e4afe9bdd1bdb21e25edf1718ba93122
Diagram SHA-256
0841eda793ec1e2a420137b63e6ed23a0bb4ddefd635c6485ae7a49310e0233a
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.audio_hard_reimpl:build_hdemucs: build({})

What it is

About this model's family

HDemucs is the spectrogram and hybrid version of Demucs. The spectrogram model keeps the structure of Demucs, except that its first layers convolve over the frequency axis until only one frequency remains, and then it switches to time convolutions. The hybrid model adds a parallel time branch: at some layer the time branch has the same stride as the frequency branch and the two are combined, with the opposite happening in the decoder.

To get back to audio the model can use naive iSTFT from masking, Wiener filtering, or complex as channels (CaC). The loss is always in the time domain, backpropagated through those output methods and the iSTFT, which is what lets hybrid models be defined cleanly. The author notes this breaks Wiener filtering a bit, since more iterations at test time change the spectrogram contribution without changing the waveform one. CaC gives similar performance for hybrid and works naturally with hybrid models. Unlike classic Demucs there is no resampling, and normalization is always applied.

Key idea. A hybrid Demucs that runs a parallel time branch alongside the frequency-axis spectrogram branch and merges the two mid-network.

  • hdemucs
  • hybrid demucs
  • demucs
  • music source separation
  • stem separation
  • drums bass other vocals
  • torchaudio hdemucs
  • hdemucs high musdb

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.