--- license: cc-by-nc-4.0 tags: - text-to-image - diffusion - latent-diffusion - art - paintings pipeline_tag: text-to-image --- # Renaissance Diffusion A 326M-parameter text-to-painting latent diffusion UNet trained **from scratch** on 69,798 paintings (WikiArt plus the open-access collections of the Met, the Art Institute of Chicago, the Rijksmuseum, the Cleveland Museum of Art and the Smithsonian). It works in the latent space of the Stable Diffusion 1.5 VAE and is conditioned on CLIP ViT-B/32 text embeddings. ![samples](samples_grid.jpg) Code, training recipe and more examples: **[github.com/ardagurer11/renaissance-diffusion](https://github.com/ardagurer11/renaissance-diffusion)** ## Usage ```bash pip install git+https://github.com/ardagurer11/renaissance-diffusion.git renaissance-generate "A Baroque portrait by rembrandt." -n 4 --seed 2 -o rembrandt.png ``` ```python from renaissance_diffusion import RenaissancePipeline pipe = RenaissancePipeline.from_pretrained("ardagurer/renaissance-diffusion") images = pipe("A Impressionism landscape by claude monet.", num_images=4, seed=0) images[0].save("monet.png") ``` The weights are loaded with the package above, not with `diffusers.DiffusionPipeline`. The frozen VAE (`stable-diffusion-v1-5/stable-diffusion-v1-5`) and text encoder (`openai/clip-vit-base-patch32`) are downloaded from their own repositories. Prompts work best in the WikiArt caption format `A