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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
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