Diffusers
VQDiffusionPipeline
Edit model card

VQ Diffusion

#!pip install diffusers[torch] transformers
import torch
from diffusers import VQDiffusionPipeline

pipeline = VQDiffusionPipeline.from_pretrained("microsoft/vq-diffusion-ithq", torch_dtype=torch.float16)
pipeline = pipeline.to("cuda")

output = pipeline("teddy bear playing in the pool", truncation_rate=1.0)

image = output.images[0]
image.save("./teddy_bear.png")

img

Contribution: This model was contribution by williamberman in VQ-diffusion.

Downloads last month
176
Inference API
Unable to determine this model’s pipeline type. Check the docs .

Spaces using microsoft/vq-diffusion-ithq 2