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
2f0fcf4f
"...text-generation-inference.git" did not exist on "245d3de94877d4910ea7876f6bd19b4d7d4a47d9"
Unverified
Commit
2f0fcf4f
authored
Oct 26, 2022
by
Julien Simon
Committed by
GitHub
Oct 26, 2022
Browse files
Add missing import (#979)
parent
cc436087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
README.md
README.md
+1
-0
No files found.
README.md
View file @
2f0fcf4f
...
@@ -88,6 +88,7 @@ We recommend using the model in [half-precision (`fp16`)](https://pytorch.org/bl
...
@@ -88,6 +88,7 @@ We recommend using the model in [half-precision (`fp16`)](https://pytorch.org/bl
precision while being roughly twice as fast and requiring half the amount of GPU RAM.
precision while being roughly twice as fast and requiring half the amount of GPU RAM.
```
python
```
python
import
torch
from
diffusers
import
StableDiffusionPipeline
from
diffusers
import
StableDiffusionPipeline
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"runwayml/stable-diffusion-v1-5"
,
torch_dtype
=
torch
.
float16
,
revision
=
"fp16"
)
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"runwayml/stable-diffusion-v1-5"
,
torch_dtype
=
torch
.
float16
,
revision
=
"fp16"
)
...
...
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