Skip to content

Commit ab0459f

Browse files
authored
[Deprecated pipelines] remove pix2pix zero from init (#6268)
remove pix2pix zero from init
1 parent 9c7cc36 commit ab0459f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/diffusers/pipelines/stable_diffusion/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,15 @@
6565
except OptionalDependencyNotAvailable:
6666
from ...utils.dummy_torch_and_transformers_objects import (
6767
StableDiffusionDepth2ImgPipeline,
68-
StableDiffusionPix2PixZeroPipeline,
6968
)
7069

7170
_dummy_objects.update(
7271
{
7372
"StableDiffusionDepth2ImgPipeline": StableDiffusionDepth2ImgPipeline,
74-
"StableDiffusionPix2PixZeroPipeline": StableDiffusionPix2PixZeroPipeline,
7573
}
7674
)
7775
else:
7876
_import_structure["pipeline_stable_diffusion_depth2img"] = ["StableDiffusionDepth2ImgPipeline"]
79-
_import_structure["pipeline_stable_diffusion_pix2pix_zero"] = ["StableDiffusionPix2PixZeroPipeline"]
8077

8178
try:
8279
if not (is_transformers_available() and is_onnx_available()):
@@ -150,10 +147,7 @@
150147
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.26.0")):
151148
raise OptionalDependencyNotAvailable()
152149
except OptionalDependencyNotAvailable:
153-
from ...utils.dummy_torch_and_transformers_objects import (
154-
StableDiffusionDepth2ImgPipeline,
155-
StableDiffusionPix2PixZeroPipeline,
156-
)
150+
from ...utils.dummy_torch_and_transformers_objects import StableDiffusionDepth2ImgPipeline
157151
else:
158152
from .pipeline_stable_diffusion_depth2img import (
159153
StableDiffusionDepth2ImgPipeline,

0 commit comments

Comments
 (0)