← Open Source
dome272

Wuerstchen

Official implementation of Würstchen: Efficient Pretraining of Text-to-Image Models.

Model DevelopmentArchitectureJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
553
Stars
34
Forks
+0
This week
5
Contributors
Created 2023-05-24 · Updated 2026-10-07 · #17157 today
Top developers
dome272maubrevilleeltociear

dome272/Wuerstchen is ranked 17,157 with 553 stars.

Same-category comparison

dome272/Wuerstchen is ranked 17,157 among these 8 peers; facebookresearch/SymbolicMathematics is ranked 17,158.

Same-category comparison
NameRankMetrics
OniroAI/MonoDepth-PyTorch17,132
Language:
Python
Stars:
554
Forks:
128
Description:
Unofficial implementation of Unsupervised Monocular Depth Estimation neural network MonoDepth in PyTorch.
patrikeh/go-deep17,145
Language:
Go
Stars:
554
Forks:
68
Description:
Artificial Neural Network.
HannesStark/EquiBind17,150
Language:
Python
Stars:
553
Forks:
117
Description:
EquiBind: geometric deep learning for fast predictions of the 3D structure in which a small molecule binds to a protein.
broadinstitute/keras-rcnn17,154
Language:
Python
Stars:
553
Forks:
218
Description:
Keras package for region-based convolutional neural networks (RCNNs).
facebookresearch/SymbolicMathematics17,158
Language:
Python
Stars:
553
Forks:
121
Description:
Deep Learning for Symbolic Mathematics.
lee-zq/3DUNet-Pytorch17,160
Language:
Python
Stars:
553
Forks:
107
Description:
3DUNet implemented with pytorch.
taki0112/Self-Attention-GAN-Tensorflow17,163
Language:
Python
Stars:
553
Forks:
147
Description:
Simple Tensorflow implementation of "Self-Attention Generative Adversarial Networks" (SAGAN).
uber-research/LaneGCN17,164
Language:
Python
Stars:
553
Forks:
132
Description:
[ECCV2020 Oral] Learning Lane Graph Representations for Motion Forecasting.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryModel Development
SubcategoryArchitecture
KeywordsDiffusion, Text-to-image
Stars553
Forks34
Contributors5
Created date2023-05-24
Updated date2026-10-07
Stars in 1 day0
Stars in 7 days0
Rank17,157
Previous rank16,942
Rank change-215
7-day stars rank15,937
Previous 7-day stars rank15,945
7-day stars rank change8
Total stars rank17,896
Previous total stars rank17,871
Total stars rank change-25
CountryGermany
README summary

Würstchen (ICLR 2024, oral) What is this? Würstchen is a new framework for training text-conditional models by moving the computationally expensive text-conditional stage into a highly compressed latent space. Common approaches make use of a single stage compression, while Würstchen introduces another Stage that introduces even more compression. In total we have Stage A & B that are responsible for compressing images and Stage C that learns the text-conditional part in the low dimensional latent

space. With that Würstchen achieves a 42x compression factor, while still reconstructing images faithfully. This enables training of Stage C to be fast and computationally cheap. Use Würstchen You can use the model simply through the notebooks here. The Stage B notebook only for reconstruction and the Stage C notebook is for the text-conditional generation. You can also try the text-to-image generation on Google Colab. Using in 🧨 diffusers Würstchen is fully integrated into the

library. Here's how to use it: Refer to the official documentation to learn more. Train your own Würstchen Training Würstchen is considerably faster and cheaper than other text-to-image as it trains in a much smaller latent space of 12x12. We provide training scripts for both Stage B and Stage C. 000| 512x512 | | Würstchen v2 | Hugging Face | 1B (Stage C) + 600M (Stage B) + 19M (Stage A) | CLIP-bigG-Text | 918. 000| 1024x1024 | Acknowledgment Special thanks to

Stability AI for providing compute for our research. Citation If you use our approach in your research or were inspired by it, we would be thrilled if you cite our paper:

Frequently asked questions

How many stars and forks are recorded?

dome272/Wuerstchen has 553 stars and 34 forks.

What is the repository rank?

dome272/Wuerstchen is ranked 17,157.

What language and category are recorded?

dome272/Wuerstchen has 553 stars, uses Jupyter Notebook and belongs to Model Development.

Which repository is closest in rank?

dome272/Wuerstchen is compared with facebookresearch/SymbolicMathematics, ranked 17,158 with 553 stars.

README

Würstchen (ICLR 2024, oral)

What is this?

Würstchen is a new framework for training text-conditional models by moving the computationally expensive text-conditional stage into a highly compressed latent space. Common approaches make use of a single stage compression, while Würstchen introduces another Stage that introduces even more compression. In total we have Stage A & B that are responsible for compressing images and Stage C that learns the text-conditional part in the low dimensional latent space. With that Würstchen achieves a 42x compression factor, while still reconstructing images faithfully. This enables training of Stage C to be fast and computationally cheap. We refer to the paper for details.

Use Würstchen

You can use the model simply through the notebooks here. The Stage B notebook only for reconstruction and the Stage C notebook is for the text-conditional generation. You can also try the text-to-image generation on Google Colab.

Using in 🧨 diffusers

Würstchen is fully integrated into the diffusers library. Here's how to use it:

# pip install -U transformers accelerate diffusers

import torch
from diffusers import AutoPipelineForText2Image
from diffusers.pipelines.wuerstchen import DEFAULT_STAGE_C_TIMESTEPS

pipe = AutoPipelineForText2Image.from_pretrained("warp-ai/wuerstchen", torch_dtype=torch.float16).to("cuda")

caption = "Anthropomorphic cat dressed as a fire fighter"
images = pipe(
    caption, 
    width=1024,
    height=1536,
    prior_timesteps=DEFAULT_STAGE_C_TIMESTEPS,
    prior_guidance_scale=4.0,
    num_images_per_prompt=2,
).images

Refer to the official documentation to learn more.

Train your own Würstchen

Training Würstchen is considerably faster and cheaper than other text-to-image as it trains in a much smaller latent space of 12x12. We provide training scripts for both Stage B and Stage C.

Download Models

Model Download Parameters Conditioning Training Steps Resolution
Würstchen v1 Hugging Face 1B (Stage C) + 600M (Stage B) + 19M (Stage A) CLIP-H-Text 800.000 512x512
Würstchen v2 Hugging Face 1B (Stage C) + 600M (Stage B) + 19M (Stage A) CLIP-bigG-Text 918.000 1024x1024

Acknowledgment

Special thanks to Stability AI for providing compute for our research.

Citation

If you use our approach in your research or were inspired by it, we would be thrilled if you cite our paper:

@inproceedings{
            pernias2024wrstchen,
            title={W\"urstchen: An Efficient Architecture for Large-Scale Text-to-Image Diffusion Models},
            author={Pablo Pernias and Dominic Rampas and Mats Leon Richter and Christopher Pal and Marc Aubreville},
            booktitle={The Twelfth International Conference on Learning Representations},
            year={2024},
            url={https://openreview.net/forum?id=gU58d5QeGv}
      }
Nearby in the ranking
Similar items