All models

torchaudio.models.HDemucs-low

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

Audio and speech · 2,101 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

This diagram has 2,101 operations (791 KB) and is drawn when you ask.

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
2,101
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
m10579
Graph hash
6bd158c63daedbfda9f6488e0f9413702d8393b79c869fa10e6652406607152f
Skeleton hash
4b382834e9e34a64b22adf66fa54a644a74b86b8334654b2428c56ea6bd2077a
Architecture hash
dbc23b468238d25df98e31623d9b795c706054d72dd2fd3ba597527bfccc3f51
Diagram SHA-256
03eff1611d1e69c8ee86f661eb4567fb4b1fb669f53a544631068a6dc4f13fdd
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.