"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "98457580c061a182e2f99cd9fb80f73db386cc59"
Unverified Commit ab0459f2 authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

[Deprecated pipelines] remove pix2pix zero from init (#6268)

remove pix2pix zero from init
parent 9c7cc360
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment