Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
82044153
Unverified
Commit
82044153
authored
Oct 25, 2022
by
Pedro Cuenca
Committed by
GitHub
Oct 25, 2022
Browse files
Fix typo: `torch_type` -> `torch_dtype` (#972)
Fix typo: torch_type -> torch_dtype
parent
2fb8fafa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
82044153
...
@@ -90,7 +90,7 @@ precision while being roughly twice as fast and requiring half the amount of GPU
...
@@ -90,7 +90,7 @@ precision while being roughly twice as fast and requiring half the amount of GPU
```
python
```
python
from
diffusers
import
StableDiffusionPipeline
from
diffusers
import
StableDiffusionPipeline
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"runwayml/stable-diffusion-v1-5"
,
torch_type
=
torch
.
float16
,
revision
=
"fp16"
)
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"runwayml/stable-diffusion-v1-5"
,
torch_
d
type
=
torch
.
float16
,
revision
=
"fp16"
)
pipe
=
pipe
.
to
(
"cuda"
)
pipe
=
pipe
.
to
(
"cuda"
)
prompt
=
"a photo of an astronaut riding a horse on mars"
prompt
=
"a photo of an astronaut riding a horse on mars"
...
...
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