ConsistencyDecoder is a Python package from OpenAI that introduces an improved decoding method for variational autoencoders (VAEs) used in Stable Diffusion pipelines. Instead of relying solely on the standard GAN or VAE decoder, this approach leverages a Consistency Distilled Diff VAE, designed to produce higher-quality and more stable outputs from encoded latents. The project provides a simple API for encoding with a Stable Diffusion VAE and decoding using the new consistency model, allowing for side-by-side comparisons with traditional decoders. It demonstrates how consistency models can enhance visual fidelity while maintaining efficiency, reducing artifacts common in GAN-decoded outputs. The repository includes installation instructions, usage examples, and visual comparisons to highlight improvements. Though compact, it provides an accessible entry point for experimenting with advanced decoding strategies in diffusion-based generative models.

Features

  • Consistency Distilled Diff VAE for improved decoding in Stable Diffusion
  • Compatible with Hugging Face Diffusers StableDiffusionPipeline
  • Provides side-by-side comparisons of GAN, VAE, and consistency decoders
  • Simple API for encoding latents and decoding with the new method
  • Example images included for testing and reproducibility
  • Lightweight Python package installable directly from GitHub

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow ConsistencyDecoder

ConsistencyDecoder Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ConsistencyDecoder!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

2025-10-04