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
bcecfbc8
Commit
bcecfbc8
authored
Dec 21, 2023
by
sayakpaul
Browse files
move attend and excite out of stable_diffusion
parent
6269045c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
src/diffusers/pipelines/__init__.py
src/diffusers/pipelines/__init__.py
+2
-2
src/diffusers/pipelines/stable_diffusion/__init__.py
src/diffusers/pipelines/stable_diffusion/__init__.py
+0
-4
src/diffusers/pipelines/stable_diffusion_attend_and_excite/__init__.py
.../pipelines/stable_diffusion_attend_and_excite/__init__.py
+2
-2
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py
...and_excite/pipeline_stable_diffusion_attend_and_excite.py
+2
-2
No files found.
src/diffusers/pipelines/__init__.py
View file @
bcecfbc8
...
...
@@ -179,7 +179,6 @@ else:
_import_structure
[
"stable_diffusion"
].
extend
(
[
"CLIPImageProjection"
,
"StableDiffusionAttendAndExcitePipeline"
,
"StableDiffusionDepth2ImgPipeline"
,
"StableDiffusionGLIGENPipeline"
,
"StableDiffusionGLIGENPipeline"
,
...
...
@@ -209,6 +208,7 @@ else:
]
)
_import_structure
[
"stable_diffusion_diffedit"
]
=
[
"StableDiffusionDiffEditPipeline"
]
_import_structure
[
"stable_diffusion_attend_and_excite"
]
=
[
"StableDiffusionAttendAndExcitePipeline"
]
_import_structure
[
"t2i_adapter"
]
=
[
"StableDiffusionAdapterPipeline"
,
"StableDiffusionXLAdapterPipeline"
,
...
...
@@ -420,7 +420,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
from
.shap_e
import
ShapEImg2ImgPipeline
,
ShapEPipeline
from
.stable_diffusion
import
(
CLIPImageProjection
,
StableDiffusionAttendAndExcitePipeline
,
StableDiffusionDepth2ImgPipeline
,
StableDiffusionGLIGENPipeline
,
StableDiffusionGLIGENTextImagePipeline
,
...
...
@@ -437,6 +436,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
StableUnCLIPImg2ImgPipeline
,
StableUnCLIPPipeline
,
)
from
.stable_diffusion_attend_and_excite
import
StableDiffusionAttendAndExcitePipeline
from
.stable_diffusion_diffedit
import
StableDiffusionDiffEditPipeline
from
.stable_diffusion_safe
import
StableDiffusionPipelineSafe
from
.stable_diffusion_xl
import
(
...
...
src/diffusers/pipelines/stable_diffusion/__init__.py
View file @
bcecfbc8
...
...
@@ -32,7 +32,6 @@ else:
_import_structure
[
"clip_image_project_model"
]
=
[
"CLIPImageProjection"
]
_import_structure
[
"pipeline_cycle_diffusion"
]
=
[
"CycleDiffusionPipeline"
]
_import_structure
[
"pipeline_stable_diffusion"
]
=
[
"StableDiffusionPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_attend_and_excite"
]
=
[
"StableDiffusionAttendAndExcitePipeline"
]
_import_structure
[
"pipeline_stable_diffusion_gligen"
]
=
[
"StableDiffusionGLIGENPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_gligen_text_image"
]
=
[
"StableDiffusionGLIGENTextImagePipeline"
]
_import_structure
[
"pipeline_stable_diffusion_img2img"
]
=
[
"StableDiffusionImg2ImgPipeline"
]
...
...
@@ -136,9 +135,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
StableDiffusionPipelineOutput
,
StableDiffusionSafetyChecker
,
)
from
.pipeline_stable_diffusion_attend_and_excite
import
(
StableDiffusionAttendAndExcitePipeline
,
)
from
.pipeline_stable_diffusion_gligen
import
StableDiffusionGLIGENPipeline
from
.pipeline_stable_diffusion_gligen_text_image
import
(
StableDiffusionGLIGENTextImagePipeline
,
...
...
src/diffusers/pipelines/stable_diffusion_
diffed
it/__init__.py
→
src/diffusers/pipelines/stable_diffusion_
attend_and_exc
it
e
/__init__.py
View file @
bcecfbc8
...
...
@@ -22,7 +22,7 @@ except OptionalDependencyNotAvailable:
_dummy_objects
.
update
(
get_objects_from_module
(
dummy_torch_and_transformers_objects
))
else
:
_import_structure
[
"pipeline_stable_diffusion_
diffed
it"
]
=
[
"StableDiffusion
DiffEd
itPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_
attend_and_exc
it
e
"
]
=
[
"StableDiffusion
AttendAndExc
it
e
Pipeline"
]
if
TYPE_CHECKING
or
DIFFUSERS_SLOW_IMPORT
:
try
:
...
...
@@ -32,7 +32,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
except
OptionalDependencyNotAvailable
:
from
...utils.dummy_torch_and_transformers_objects
import
*
else
:
from
.pipeline_stable_diffusion_
diffed
it
import
StableDiffusion
DiffEd
itPipeline
from
.pipeline_stable_diffusion_
attend_and_exc
it
e
import
StableDiffusion
AttendAndExc
it
e
Pipeline
else
:
import
sys
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py
→
src/diffusers/pipelines/stable_diffusion
_attend_and_excite
/pipeline_stable_diffusion_attend_and_excite.py
View file @
bcecfbc8
...
...
@@ -37,8 +37,8 @@ from ...utils import (
)
from
...utils.torch_utils
import
randn_tensor
from
..pipeline_utils
import
DiffusionPipeline
from
.
import
StableDiffusionPipelineOutput
from
.safety_checker
import
StableDiffusionSafetyChecker
from
.
.stable_diffusion
import
StableDiffusionPipelineOutput
from
..stable_diffusion
.safety_checker
import
StableDiffusionSafetyChecker
logger
=
logging
.
get_logger
(
__name__
)
...
...
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