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
124e76dd
Unverified
Commit
124e76dd
authored
Aug 24, 2023
by
realliujiaxu
Committed by
GitHub
Aug 23, 2023
Browse files
[docs] add variant="fp16" flag (#4678)
parent
05b0ec63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
docs/source/en/using-diffusers/inpaint.md
docs/source/en/using-diffusers/inpaint.md
+1
-0
No files found.
docs/source/en/using-diffusers/inpaint.md
View file @
124e76dd
...
@@ -30,6 +30,7 @@ pipeline = StableDiffusionInpaintPipeline.from_pretrained(
...
@@ -30,6 +30,7 @@ pipeline = StableDiffusionInpaintPipeline.from_pretrained(
"runwayml/stable-diffusion-inpainting"
,
"runwayml/stable-diffusion-inpainting"
,
torch_dtype
=
torch
.
float16
,
torch_dtype
=
torch
.
float16
,
use_safetensors
=
True
,
use_safetensors
=
True
,
variant
=
"fp16"
,
)
)
pipeline
=
pipeline
.
to
(
"cuda"
)
pipeline
=
pipeline
.
to
(
"cuda"
)
```
```
...
...
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