# nvlabs/spade

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/nvlabs-spade).**

7,718 stars · 970 forks · Python · NOASSERTION

## Links

- GitHub: https://github.com/NVlabs/SPADE
- Homepage: https://nvlabs.github.io/SPADE/
- awesome-repositories: https://awesome-repositories.com/repository/nvlabs-spade.md

## Description

SPADE is a semantic image synthesis framework and generative adversarial network designed to transform semantic label maps into photorealistic images. It uses a spatially-adaptive normalization model to modulate activations based on semantic maps, ensuring that spatial layouts and details are preserved throughout the synthesis process.

The project enables the generation of diverse image variations from a single semantic layout by integrating variational autoencoders and latent vector style control. These mechanisms allow for the adjustment of visual appearances and textures while keeping the underlying structural layout constant.

The system includes workflows for training synthesis models on custom image and label pairs and supports reverse mapping training to convert photos back into semantic maps. Training is supported by multi-GPU distributed acceleration to handle high-resolution image generation.

## Tags

### Artificial Intelligence & ML

- [Spatially-Adaptive Normalization](https://awesome-repositories.com/f/artificial-intelligence-ml/model-training/spatial-control-networks/spatially-adaptive-normalization.md) — Implements a spatially-adaptive normalization model that preserves layout details by modulating activations based on semantic maps.
- [Adaptive Instance Normalization](https://awesome-repositories.com/f/artificial-intelligence-ml/adaptive-instance-normalization.md) — Implements an adaptive normalization model that modulates activations based on semantic maps to maintain layout details.
- [Image-to-Image Translation](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-pipelines/text-to-image-generators/image-inpainting/image-to-image-translation.md) — Performs image-to-image translation by mapping semantic layout domains into photorealistic image domains. ([source](https://github.com/nvlabs/spade#readme))
- [Generative Adversarial Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation/generative-adversarial-architectures.md) — Uses a generative adversarial network architecture to synthesize diverse visual styles from semantic layouts.
- [Generative Adversarial Image Synthesis](https://awesome-repositories.com/f/artificial-intelligence-ml/image-super-resolution-models/generative-adversarial-image-synthesis.md) — Generates photorealistic images using a GAN-based architecture guided by semantic label maps. ([source](https://nvlabs.github.io/SPADE/))
- [Semantic Synthesis Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/image-super-resolution-models/semantic-synthesis-frameworks.md) — Provides a deep learning system that transforms semantic label maps into photorealistic images using spatially-adaptive normalization.
- [Latent Style Control](https://awesome-repositories.com/f/artificial-intelligence-ml/latent-style-control.md) — Adjusts the visual appearance and textures of generated images using latent vectors while keeping the structural layout constant.
- [Spatially-Aware Layers](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/model-construction/neural-network-layers/normalization-layers/spatially-aware-layers.md) — Replaces standard normalization with learned tensors that adjust feature maps based on local semantic class labels.
- [Variational Autoencoders](https://awesome-repositories.com/f/artificial-intelligence-ml/model-training/variational-autoencoders.md) — Integrates variational autoencoders to encode visual styles into latent vectors for diverse image synthesis.
- [Structural Image Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/structural-image-generation.md) — Converts structural semantic maps into detailed photorealistic images while preserving the spatial arrangement of regions.
- [Visual Guidance Inputs](https://awesome-repositories.com/f/artificial-intelligence-ml/visual-guidance-inputs.md) — Uses semantic label maps as visual guidance to direct the placement and structure of generated objects.
- [Segmentation Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation/segmentation-model-training.md) — Trains models to perform the inverse task of converting existing photorealistic images back into semantic label maps. ([source](https://nvlabs.github.io/SPADE/))
- [Generative Latent Mappings](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-models/latent-space-generative-models/latent-space-projections/image-to-latent-projections/generative-latent-mappings.md) — Adjusts the visual appearance of results by mapping noise/latent vectors to high-dimensional representations for synthesis. ([source](https://nvlabs.github.io/SPADE/))
- [Image Variation and Mixing](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation/image-editing/image-variation-and-mixing.md) — Creates multiple distinct visual versions of a single semantic layout using latent space variations.
- [Synthesis Dataset Training](https://awesome-repositories.com/f/artificial-intelligence-ml/synthesis-dataset-training.md) — Supports training neural networks on custom image and label pairs to learn realistic scene synthesis.

### Part of an Awesome List

- [Semantic Image Synthesis](https://awesome-repositories.com/f/awesome-lists/ai/image-generation-and-synthesis/semantic-image-synthesis.md) — Generates photorealistic images from semantic label maps to create visuals that match a specific layout.
- [Foundational Generative Models](https://awesome-repositories.com/f/awesome-lists/ai/foundational-generative-models.md) — Official implementation for semantic image synthesis.

### Graphics & Multimedia

- [Semantic-to-Image Converters](https://awesome-repositories.com/f/graphics-multimedia/semantic-to-image-converters.md) — Renders high-resolution photos from segmentation maps using trained synthesis networks.
