All models

fastspeech2_conformer (text to spectrogram)

FastSpeech 2 text-to-speech with conformer blocks in place of transformer blocks, from ESPnet.

Audio and speech · 683 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 (26 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
70.3M
Operations
683
Framework
PyTorch
Recurrent
No
Name in source
fastspeech2_conformer:text-to-spectrogram
License
Apache-2.0
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
m4857
Graph hash
b3bfd1471c05a008136aa1f57267b97da1bb13d1e5fb2996e0d36dddbcdf195f
Skeleton hash
b98ae5b3cea961d38bde6a83bd7017f26e6dae3ee0a9d39117592543223d12d9
Architecture hash
6ea36925717d2b543c20d09ccf7670af2f2b0c267f42aa4e2d1dee6495f4c724
Diagram SHA-256
fc467ce39bf02b303ee2830dfb2291187cb10107059a69e459a1ddbc0eb6c93b
TorchLens version
2.36.0
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

transformers.AutoModelForTextToSpectrogram.from_config()

What it is

About this model's family

FastSpeech2Conformer is a non-autoregressive text-to-speech model: FastSpeech2's general structure with a Mel-spectrogram decoder, with the traditional transformer blocks replaced by conformer blocks as done in the ESPnet library. FastSpeech 2 trains directly on ground-truth targets instead of a teacher's simplified output and takes pitch, energy and duration as conditional inputs, which is how it tackles the one-to-many mapping in TTS. Instead of quantized pitch and energy, this implementation uses the token-averaged values introduced in FastPitch.

The original FastSpeech 2 paper reports a 3x training speed-up over FastSpeech. The acoustic model emits a spectrogram and a separate FastSpeech2ConformerHifiGan vocoder turns it into a waveform.

Key idea. Swapping the transformer blocks of FastSpeech 2's parallel text-to-spectrogram model for conformer blocks, following ESPnet.

  • FastSpeech2Conformer
  • FastSpeech 2
  • FastSpeech2
  • conformer TTS
  • ESPnet
  • text to speech
  • TTS
  • mel spectrogram
  • HiFi-GAN
  • FastSpeech2ConformerWithHifiGan
  • espnet/fastspeech2_conformer

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