mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
[From Single File] Force accelerate to be installed (#4078)
force accelerate to be installed
This commit is contained in:
committed by
GitHub
parent
4535088cec
commit
bfe8b41315
@@ -1172,6 +1172,11 @@ def download_from_original_stable_diffusion_ckpt(
|
||||
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:
|
||||
pipeline_class = StableDiffusionPipeline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user