1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[ConsistencyDecoder] fix: doc type (#5745)

fix: doc type
This commit is contained in:
Sayak Paul
2023-11-10 14:05:22 +05:30
committed by GitHub
parent 1328aeb274
commit 77ba494b29

View File

@@ -58,7 +58,7 @@ class ConsistencyDecoderVAE(ModelMixin, ConfigMixin):
>>> import torch
>>> from diffusers import DiffusionPipeline, ConsistencyDecoderVAE
>>> vae = ConsistencyDecoderVAE.from_pretrained("openai/consistency-decoder", torch_dtype=pipe.torch_dtype)
>>> vae = ConsistencyDecoderVAE.from_pretrained("openai/consistency-decoder", torch_dtype=torch.float16)
>>> pipe = StableDiffusionPipeline.from_pretrained(
... "runwayml/stable-diffusion-v1-5", vae=vae, torch_dtype=torch.float16
... ).to("cuda")