Unverified Commit 2b178673 authored by Will Berman's avatar Will Berman Committed by GitHub
Browse files

fix fp type in t2i adapter docs (#4350)

parent 4a4cdd6b
...@@ -69,7 +69,7 @@ Next, create the adapter pipeline ...@@ -69,7 +69,7 @@ Next, create the adapter pipeline
import torch import torch
from diffusers import StableDiffusionAdapterPipeline, T2IAdapter from diffusers import StableDiffusionAdapterPipeline, T2IAdapter
adapter = T2IAdapter.from_pretrained("TencentARC/t2iadapter_color_sd14v1") adapter = T2IAdapter.from_pretrained("TencentARC/t2iadapter_color_sd14v1", torch_dtype=torch.float16)
pipe = StableDiffusionAdapterPipeline.from_pretrained( pipe = StableDiffusionAdapterPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4", "CompVis/stable-diffusion-v1-4",
adapter=adapter, adapter=adapter,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment