Downloads · 30 days
32
5% of all-time downloads
pearisli/ldm-lsun-church
ldm-lsun-church is a unconditional image generation model from pearisli. Use it for the unconditional image generation task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as mit.
Downloads · 30 days
32
5% of all-time downloads
All-time downloads
596
Public
Parameters
295M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
From the Hugging Face model README

The model was resumed for 150,000 steps starting from the LDM-KL-8 checkpoint to incorporate the attention mechanism as implemented in diffusers, which differs from the original version. It leverages the autoencoder from stable-diffusion-2-base and achieves the FID-50K score of 4.63.
Note: To use this model with diffusers, replace the file diffusers/models/unets/unet_2d.py with the unet_2d.py provided in this repository.
from diffusers import LDMPipeline
model_id = "pearisli/ldm-lsun-church"
# load model and scheduler
pipeline = LDMPipeline.from_pretrained(model_id)
# run pipeline in inference (sample random noise and denoise)
image = pipeline(num_inference_steps=200).images[0]
# save image
image.save("ldm_generated_image.png")