File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class StableDiffusionPipelineOutput(BaseOutput):
42
42
from .pipeline_stable_diffusion_inpaint_legacy import StableDiffusionInpaintPipelineLegacy
43
43
from .safety_checker import StableDiffusionSafetyChecker
44
44
45
- if is_transformers_available () and is_torch_available () and is_transformers_version (">=" , "4.25.0." ):
45
+ if is_transformers_available () and is_torch_available () and is_transformers_version (">=" , "4.25.0.dev0 " ):
46
46
from .pipeline_stable_diffusion_image_variation import StableDiffusionImageVariationPipeline
47
47
else :
48
48
from ...utils .dummy_torch_and_transformers_objects import StableDiffusionImageVariationPipeline
Original file line number Diff line number Diff line change 1
1
from ...utils import is_torch_available , is_transformers_available , is_transformers_version
2
2
3
3
4
- if is_transformers_available () and is_torch_available () and is_transformers_version (">=" , "4.25.0." ):
4
+ if is_transformers_available () and is_torch_available () and is_transformers_version (">=" , "4.25.0.dev0 " ):
5
5
from .modeling_text_unet import UNetFlatConditionModel
6
6
from .pipeline_versatile_diffusion import VersatileDiffusionPipeline
7
7
from .pipeline_versatile_diffusion_dual_guided import VersatileDiffusionDualGuidedPipeline
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ def requires_backends(obj, backends):
308
308
"VersatileDiffusionPipeline" ,
309
309
"VersatileDiffusionDualGuidedPipeline" ,
310
310
"StableDiffusionImageVariationPipeline" ,
311
- ] and is_transformers_version ("<" , "4.25.0." ):
311
+ ] and is_transformers_version ("<" , "4.25.0.dev0 " ):
312
312
raise ImportError (
313
313
f"You need to install `transformers` from 'main' in order to use { name } : \n ```\n pip install"
314
314
" git+https://github.com/huggingface/transformers \n ```"
You can’t perform that action at this time.
0 commit comments