Skip to content

Commit

Permalink
trailing . fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored and anton-l committed Nov 23, 2022
1 parent 9fee706 commit 3876b20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/diffusers/pipelines/stable_diffusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class StableDiffusionPipelineOutput(BaseOutput):
from .pipeline_stable_diffusion_inpaint_legacy import StableDiffusionInpaintPipelineLegacy
from .safety_checker import StableDiffusionSafetyChecker

if is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0."):
if is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0.dev0"):
from .pipeline_stable_diffusion_image_variation import StableDiffusionImageVariationPipeline
else:
from ...utils.dummy_torch_and_transformers_objects import StableDiffusionImageVariationPipeline
Expand Down
2 changes: 1 addition & 1 deletion src/diffusers/pipelines/versatile_diffusion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ...utils import is_torch_available, is_transformers_available, is_transformers_version


if is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0."):
if is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0.dev0"):
from .modeling_text_unet import UNetFlatConditionModel
from .pipeline_versatile_diffusion import VersatileDiffusionPipeline
from .pipeline_versatile_diffusion_dual_guided import VersatileDiffusionDualGuidedPipeline
Expand Down
2 changes: 1 addition & 1 deletion src/diffusers/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def requires_backends(obj, backends):
"VersatileDiffusionPipeline",
"VersatileDiffusionDualGuidedPipeline",
"StableDiffusionImageVariationPipeline",
] and is_transformers_version("<", "4.25.0."):
] and is_transformers_version("<", "4.25.0.dev0"):
raise ImportError(
f"You need to install `transformers` from 'main' in order to use {name}: \n```\n pip install"
" git+https://github.com/huggingface/transformers \n```"
Expand Down

0 comments on commit 3876b20

Please sign in to comment.