"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "7e0db46f7310a06c339a607c3e3ca852873d6d88"
Unverified Commit bfe8b413 authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

[From Single File] Force accelerate to be installed (#4078)

force accelerate to be installed
parent 4535088c
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment