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
ab0459f2
Unverified
Commit
ab0459f2
authored
Dec 21, 2023
by
Sayak Paul
Committed by
GitHub
Dec 21, 2023
Browse files
[Deprecated pipelines] remove pix2pix zero from init (#6268)
remove pix2pix zero from init
parent
9c7cc360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
src/diffusers/pipelines/stable_diffusion/__init__.py
src/diffusers/pipelines/stable_diffusion/__init__.py
+1
-7
No files found.
src/diffusers/pipelines/stable_diffusion/__init__.py
View file @
ab0459f2
...
@@ -65,18 +65,15 @@ try:
...
@@ -65,18 +65,15 @@ try:
except
OptionalDependencyNotAvailable
:
except
OptionalDependencyNotAvailable
:
from
...utils.dummy_torch_and_transformers_objects
import
(
from
...utils.dummy_torch_and_transformers_objects
import
(
StableDiffusionDepth2ImgPipeline
,
StableDiffusionDepth2ImgPipeline
,
StableDiffusionPix2PixZeroPipeline
,
)
)
_dummy_objects
.
update
(
_dummy_objects
.
update
(
{
{
"StableDiffusionDepth2ImgPipeline"
:
StableDiffusionDepth2ImgPipeline
,
"StableDiffusionDepth2ImgPipeline"
:
StableDiffusionDepth2ImgPipeline
,
"StableDiffusionPix2PixZeroPipeline"
:
StableDiffusionPix2PixZeroPipeline
,
}
}
)
)
else
:
else
:
_import_structure
[
"pipeline_stable_diffusion_depth2img"
]
=
[
"StableDiffusionDepth2ImgPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_depth2img"
]
=
[
"StableDiffusionDepth2ImgPipeline"
]
_import_structure
[
"pipeline_stable_diffusion_pix2pix_zero"
]
=
[
"StableDiffusionPix2PixZeroPipeline"
]
try
:
try
:
if
not
(
is_transformers_available
()
and
is_onnx_available
()):
if
not
(
is_transformers_available
()
and
is_onnx_available
()):
...
@@ -150,10 +147,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
...
@@ -150,10 +147,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
if
not
(
is_transformers_available
()
and
is_torch_available
()
and
is_transformers_version
(
">="
,
"4.26.0"
)):
if
not
(
is_transformers_available
()
and
is_torch_available
()
and
is_transformers_version
(
">="
,
"4.26.0"
)):
raise
OptionalDependencyNotAvailable
()
raise
OptionalDependencyNotAvailable
()
except
OptionalDependencyNotAvailable
:
except
OptionalDependencyNotAvailable
:
from
...utils.dummy_torch_and_transformers_objects
import
(
from
...utils.dummy_torch_and_transformers_objects
import
StableDiffusionDepth2ImgPipeline
StableDiffusionDepth2ImgPipeline
,
StableDiffusionPix2PixZeroPipeline
,
)
else
:
else
:
from
.pipeline_stable_diffusion_depth2img
import
(
from
.pipeline_stable_diffusion_depth2img
import
(
StableDiffusionDepth2ImgPipeline
,
StableDiffusionDepth2ImgPipeline
,
...
...
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