VQ Diffusion
Authors: Shuyang Gu, Dong Chen, et al.
#!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")
Contribution: This model was contribution by williamberman in VQ-diffusion.
- Downloads last month
- 176