From d7cfa0baa287a622f28708c81ba6663eb833c052 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Mon, 20 Feb 2023 09:34:30 +0200 Subject: [PATCH] make style --- src/diffusers/pipelines/pipeline_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffusers/pipelines/pipeline_utils.py b/src/diffusers/pipelines/pipeline_utils.py index b0e6805e..88940554 100644 --- a/src/diffusers/pipelines/pipeline_utils.py +++ b/src/diffusers/pipelines/pipeline_utils.py @@ -825,12 +825,12 @@ class DiffusionPipeline(ConfigMixin): loading_kwargs["sess_options"] = sess_options is_diffusers_model = issubclass(class_obj, diffusers.ModelMixin) - + if is_transformers_available(): transformers_version = version.parse(version.parse(transformers.__version__).base_version) else: transformers_version = version.parse("not installed") - + is_transformers_model = ( is_transformers_available() and issubclass(class_obj, PreTrainedModel)