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
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:
...
@@ -179,7 +179,6 @@ else:
_import_structure
[
"stable_diffusion"
].
extend
(
_import_structure
[
"stable_diffusion"
].
extend
(
[
[
"CLIPImageProjection"
,
"CLIPImageProjection"
,
"StableDiffusionAttendAndExcitePipeline"
,
"StableDiffusionDepth2ImgPipeline"
,
"StableDiffusionDepth2ImgPipeline"
,
"StableDiffusionGLIGENPipeline"
,
"StableDiffusionGLIGENPipeline"
,
"StableDiffusionGLIGENPipeline"
,
"StableDiffusionGLIGENPipeline"
,
...
@@ -209,6 +208,7 @@ else:
...
@@ -209,6 +208,7 @@ else:
]
]
)
)
_import_structure
[
"stable_diffusion_diffedit"
]
=
[
"StableDiffusionDiffEditPipeline"
]
_import_structure
[
"stable_diffusion_diffedit"
]
=
[
"StableDiffusionDiffEditPipeline"
]
_import_structure
[
"stable_diffusion_attend_and_excite"
]
=
[
"StableDiffusionAttendAndExcitePipeline"
]
_import_structure
[
"t2i_adapter"
]
=
[
_import_structure
[
"t2i_adapter"
]
=
[
"StableDiffusionAdapterPipeline"
,
"StableDiffusionAdapterPipeline"
,
"StableDiffusionXLAdapterPipeline"
,
"StableDiffusionXLAdapterPipeline"
,
...
@@ -420,7 +420,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
...
@@ -420,7 +420,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
from
.shap_e
import
ShapEImg2ImgPipeline
,
ShapEPipeline
from
.shap_e
import
ShapEImg2ImgPipeline
,
ShapEPipeline
from
.stable_diffusion
import
(
from
.stable_diffusion
import
(
CLIPImageProjection
,
CLIPImageProjection
,
StableDiffusionAttendAndExcitePipeline
,
StableDiffusionDepth2ImgPipeline
,
StableDiffusionDepth2ImgPipeline
,
StableDiffusionGLIGENPipeline
,
StableDiffusionGLIGENPipeline
,
StableDiffusionGLIGENTextImagePipeline
,
StableDiffusionGLIGENTextImagePipeline
,
...
@@ -437,6 +436,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
...
@@ -437,6 +436,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
StableUnCLIPImg2ImgPipeline
,
StableUnCLIPImg2ImgPipeline
,
StableUnCLIPPipeline
,
StableUnCLIPPipeline
,
)
)
from
.stable_diffusion_attend_and_excite
import
StableDiffusionAttendAndExcitePipeline
from
.stable_diffusion_diffedit
import
StableDiffusionDiffEditPipeline
from
.stable_diffusion_diffedit
import
StableDiffusionDiffEditPipeline
from
.stable_diffusion_safe
import
StableDiffusionPipelineSafe
from
.stable_diffusion_safe
import
StableDiffusionPipelineSafe
from
.stable_diffusion_xl
import
(
from
.stable_diffusion_xl
import
(
...
...
src/diffusers/pipelines/stable_diffusion/__init__.py
View file @
bcecfbc8
...
@@ -32,7 +32,6 @@ else:
...
@@ -32,7 +32,6 @@ else:
_import_structure
[
"clip_image_project_model"
]
=
[
"CLIPImageProjection"
]
_import_structure
[
"clip_image_project_model"
]
=
[
"CLIPImageProjection"
]
_import_structure
[
"pipeline_cycle_diffusion"
]
=
[
"CycleDiffusionPipeline"
]
_import_structure
[
"pipeline_cycle_diffusion"
]
=
[
"CycleDiffusionPipeline"
]
_import_structure
[
"pipeline_stable_diffusion"
]
=
[
"StableDiffusionPipeline"
]
_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"
]
=
[
"StableDiffusionGLIGENPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_gligen_text_image"
]
=
[
"StableDiffusionGLIGENTextImagePipeline"
]
_import_structure
[
"pipeline_stable_diffusion_gligen_text_image"
]
=
[
"StableDiffusionGLIGENTextImagePipeline"
]
_import_structure
[
"pipeline_stable_diffusion_img2img"
]
=
[
"StableDiffusionImg2ImgPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_img2img"
]
=
[
"StableDiffusionImg2ImgPipeline"
]
...
@@ -136,9 +135,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
...
@@ -136,9 +135,6 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
StableDiffusionPipelineOutput
,
StableDiffusionPipelineOutput
,
StableDiffusionSafetyChecker
,
StableDiffusionSafetyChecker
,
)
)
from
.pipeline_stable_diffusion_attend_and_excite
import
(
StableDiffusionAttendAndExcitePipeline
,
)
from
.pipeline_stable_diffusion_gligen
import
StableDiffusionGLIGENPipeline
from
.pipeline_stable_diffusion_gligen
import
StableDiffusionGLIGENPipeline
from
.pipeline_stable_diffusion_gligen_text_image
import
(
from
.pipeline_stable_diffusion_gligen_text_image
import
(
StableDiffusionGLIGENTextImagePipeline
,
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:
...
@@ -22,7 +22,7 @@ except OptionalDependencyNotAvailable:
_dummy_objects
.
update
(
get_objects_from_module
(
dummy_torch_and_transformers_objects
))
_dummy_objects
.
update
(
get_objects_from_module
(
dummy_torch_and_transformers_objects
))
else
:
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
:
if
TYPE_CHECKING
or
DIFFUSERS_SLOW_IMPORT
:
try
:
try
:
...
@@ -32,7 +32,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
...
@@ -32,7 +32,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
except
OptionalDependencyNotAvailable
:
except
OptionalDependencyNotAvailable
:
from
...utils.dummy_torch_and_transformers_objects
import
*
from
...utils.dummy_torch_and_transformers_objects
import
*
else
:
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
:
else
:
import
sys
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 (
...
@@ -37,8 +37,8 @@ from ...utils import (
)
)
from
...utils.torch_utils
import
randn_tensor
from
...utils.torch_utils
import
randn_tensor
from
..pipeline_utils
import
DiffusionPipeline
from
..pipeline_utils
import
DiffusionPipeline
from
.
import
StableDiffusionPipelineOutput
from
.
.stable_diffusion
import
StableDiffusionPipelineOutput
from
.safety_checker
import
StableDiffusionSafetyChecker
from
..stable_diffusion
.safety_checker
import
StableDiffusionSafetyChecker
logger
=
logging
.
get_logger
(
__name__
)
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