All models

monai.SPADEAutoencoderKL

KL-regularized image autoencoder from MONAI whose decoder is steered by SPADE semantic segmentation maps.

Diffusion and generative · 647 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 (18 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
4.5M
Operations
647
Framework
PyTorch
Recurrent
No
Published
CVPR 2019
Cited by
2,965 (as of 19 October 2026)
Authors
Taesung Park, Ming-Yu Liu, Ting-Chun Wang, Jun-Yan Zhu
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
m7448
Graph hash
de9adeb079b9cc5aca157ecc50860bd4dc9ca97c70a0e3e6d730ccd895cf41fa
Skeleton hash
3fe8cad3096fb7c7076102ee8163b0ee2f7551e158b167c931342fc5f3e96010
Architecture hash
90c8bf879bccbeb59906cc41bb7140d83d3c037ce976f1731baad6556ba0fb17
Diagram SHA-256
418e5c19f257a9edeb730e67fd48428939f8acff04ada2a443f0e69d425c9787
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

What it is

SPADEAutoencoderKL is an autoencoder with a KL-regularized latent space, based on the latent diffusion work of Rombach et al. and the brain imaging generation work of Pinaya and colleagues. It enables SPADE normalization for semantic conditioning, following the 2019 SPADE work of Park and colleagues. The encoder forwards an image through a spatial encoder to obtain latent mean and sigma representations. The decoder is a convolutional cascade upsampling from the spatial latent space into image space, and it takes a segmentation tensor for SPADE norm. The forward pass returns the reconstruction together with the latent mean and sigma.

Residual blocks consist of two convolutions with activation and normalization plus a residual connection between input and output. Non-local attention blocks can be enabled in the encoder and in the decoder.

SPADE, spatially-adaptive normalization, is a layer for synthesizing photorealistic images given an input semantic layout. Its authors proposed using the input layout to modulate the activations in normalization layers through a spatially-adaptive, learned transformation. In the SPADE paper, an encoder and the generator form a VAE in which the encoder captures image style and the generator combines that style with the segmentation mask to reconstruct the original image.

Key idea. MONAI's SPADEAutoencoderKL adds SPADE semantic conditioning to a KL-regularized latent autoencoder so segmentation maps steer the decoder's reconstruction.

  • SPADE
  • spatially-adaptive normalization
  • autoencoder KL
  • variational autoencoder
  • latent diffusion
  • semantic conditioning
  • MONAI
  • generative models
  • medical image synthesis

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

Cite the paper

@misc{park2019semanticimagesynthesisspatiallyadaptive,
      title={Semantic Image Synthesis with Spatially-Adaptive Normalization}, 
      author={Taesung Park and Ming-Yu Liu and Ting-Chun Wang and Jun-Yan Zhu},
      year={2019},
      eprint={1903.07291},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1903.07291}, 
}