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
OpenDAS
diffusers
Commits
bfe8b413
You need to sign in or sign up before continuing.
Unverified
Commit
bfe8b413
authored
Jul 13, 2023
by
Patrick von Platen
Committed by
GitHub
Jul 13, 2023
Browse files
[From Single File] Force accelerate to be installed (#4078)
force accelerate to be installed
parent
4535088c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
...diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
+5
-0
No files found.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
View file @
bfe8b413
...
@@ -1172,6 +1172,11 @@ def download_from_original_stable_diffusion_ckpt(
...
@@ -1172,6 +1172,11 @@ def download_from_original_stable_diffusion_ckpt(
StableUnCLIPPipeline
,
StableUnCLIPPipeline
,
)
)
if
not
is_accelerate_available
():
raise
ImportError
(
"To correctly use `from_single_file`, please make sure that `accelerate` is installed. You can install it with `pip install accelerate`."
)
if
pipeline_class
is
None
:
if
pipeline_class
is
None
:
pipeline_class
=
StableDiffusionPipeline
pipeline_class
=
StableDiffusionPipeline
...
...
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