模型:

microsoft/vq-diffusion-ithq

类库:

Diffusers

预印本库:

arxiv:2205.16007

许可:

mit
中文

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")

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