Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
2b178673
Unverified
Commit
2b178673
authored
Jul 28, 2023
by
Will Berman
Committed by
GitHub
Jul 28, 2023
Browse files
fix fp type in t2i adapter docs (#4350)
parent
4a4cdd6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/api/pipelines/stable_diffusion/adapter.md
docs/source/en/api/pipelines/stable_diffusion/adapter.md
+1
-1
No files found.
docs/source/en/api/pipelines/stable_diffusion/adapter.md
View file @
2b178673
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment