
hdemucs_high
Audio and speech565 ops93.7K params
Demucs in hybrid form: parallel spectrogram and waveform branches merged mid-network.
Audio and speech · 565 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.audio_hard_reimpl:build_hdemucs: build({}) 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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.