__init__.py 411 Bytes
Newer Older
1
from typing import TYPE_CHECKING
Dhruv Nair's avatar
Dhruv Nair committed
2

3
from ...utils import DIFFUSERS_SLOW_IMPORT, _LazyModule
Dhruv Nair's avatar
Dhruv Nair committed
4
5


6
_import_structure = {"pipeline_ddim": ["DDIMPipeline"]}
Dhruv Nair's avatar
Dhruv Nair committed
7

8
if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
9
10
11
    from .pipeline_ddim import DDIMPipeline
else:
    import sys
Dhruv Nair's avatar
Dhruv Nair committed
12

13
14
15
16
17
18
    sys.modules[__name__] = _LazyModule(
        __name__,
        globals()["__file__"],
        _import_structure,
        module_spec=__spec__,
    )