Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
9479052d
Commit
9479052d
authored
Nov 24, 2022
by
Patrick von Platen
Browse files
fix trailing . dep object
parent
35d81861
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/diffusers/pipelines/stable_diffusion/__init__.py
src/diffusers/pipelines/stable_diffusion/__init__.py
+1
-1
src/diffusers/pipelines/versatile_diffusion/__init__.py
src/diffusers/pipelines/versatile_diffusion/__init__.py
+1
-1
src/diffusers/utils/import_utils.py
src/diffusers/utils/import_utils.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion/__init__.py
View file @
9479052d
...
...
@@ -42,7 +42,7 @@ if is_transformers_available() and is_torch_available():
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
.
"
):
from
.pipeline_stable_diffusion_image_variation
import
StableDiffusionImageVariationPipeline
else
:
from
...utils.dummy_torch_and_transformers_objects
import
StableDiffusionImageVariationPipeline
...
...
src/diffusers/pipelines/versatile_diffusion/__init__.py
View file @
9479052d
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
.
"
):
from
.modeling_text_unet
import
UNetFlatConditionModel
from
.pipeline_versatile_diffusion
import
VersatileDiffusionPipeline
from
.pipeline_versatile_diffusion_dual_guided
import
VersatileDiffusionDualGuidedPipeline
...
...
src/diffusers/utils/import_utils.py
View file @
9479052d
...
...
@@ -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
.
"
):
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
```"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment