Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
e3c8af26
Commit
e3c8af26
authored
Jun 15, 2022
by
Patrick von Platen
Browse files
up
parent
ca9f7ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
src/diffusers/pipelines/__init__.py
src/diffusers/pipelines/__init__.py
+1
-0
src/diffusers/pipelines/pipeline_glide.py
src/diffusers/pipelines/pipeline_glide.py
+1
-5
No files found.
src/diffusers/pipelines/__init__.py
View file @
e3c8af26
...
@@ -6,6 +6,7 @@ from .pipeline_ddpm import DDPM
...
@@ -6,6 +6,7 @@ from .pipeline_ddpm import DDPM
try
:
try
:
from
.pipeline_glide
import
GLIDE
from
.pipeline_glide
import
GLIDE
except
(
NameError
,
ImportError
):
except
(
NameError
,
ImportError
):
class
GLIDE
:
class
GLIDE
:
pass
pass
...
...
src/diffusers/pipelines/pipeline_glide.py
View file @
e3c8af26
...
@@ -31,11 +31,7 @@ try:
...
@@ -31,11 +31,7 @@ try:
from
transformers.activations
import
ACT2FN
from
transformers.activations
import
ACT2FN
from
transformers.modeling_outputs
import
BaseModelOutput
,
BaseModelOutputWithPooling
from
transformers.modeling_outputs
import
BaseModelOutput
,
BaseModelOutputWithPooling
from
transformers.modeling_utils
import
PreTrainedModel
from
transformers.modeling_utils
import
PreTrainedModel
from
transformers.utils
import
(
from
transformers.utils
import
ModelOutput
,
add_start_docstrings_to_model_forward
,
replace_return_docstrings
ModelOutput
,
add_start_docstrings_to_model_forward
,
replace_return_docstrings
,
)
except
:
except
:
print
(
"Transformers is not installed"
)
print
(
"Transformers is not installed"
)
pass
pass
...
...
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