mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
# flake8: noqa
|
|
# There's no way to ignore "F401 '...' imported but unused" warnings in this
|
|
# module, but to preserve other warnings. So, don't check this module at all.
|
|
from .utils import is_inflect_available, is_transformers_available, is_unidecode_available
|
|
|
|
|
|
__version__ = "0.0.4"
|
|
|
|
from .modeling_utils import ModelMixin
|
|
from .models import AutoencoderKL, NCSNpp, TemporalUNet, UNetLDMModel, UNetModel, VQModel
|
|
from .pipeline_utils import DiffusionPipeline
|
|
from .pipelines import (
|
|
BDDMPipeline,
|
|
DDIMPipeline,
|
|
DDPMPipeline,
|
|
LatentDiffusionUncondPipeline,
|
|
PNDMPipeline,
|
|
ScoreSdeVePipeline,
|
|
ScoreSdeVpPipeline,
|
|
)
|
|
from .schedulers import (
|
|
DDIMScheduler,
|
|
DDPMScheduler,
|
|
GradTTSScheduler,
|
|
PNDMScheduler,
|
|
SchedulerMixin,
|
|
ScoreSdeVeScheduler,
|
|
ScoreSdeVpScheduler,
|
|
)
|
|
|
|
|
|
if is_transformers_available():
|
|
from .models.unet_glide import GlideSuperResUNetModel, GlideTextToImageUNetModel, GlideUNetModel
|
|
from .models.unet_grad_tts import UNetGradTTSModel
|
|
from .pipelines import GlidePipeline, LatentDiffusionPipeline
|
|
else:
|
|
from .utils.dummy_transformers_objects import *
|
|
|
|
|
|
if is_transformers_available() and is_inflect_available() and is_unidecode_available():
|
|
from .pipelines import GradTTSPipeline
|
|
else:
|
|
from .utils.dummy_transformers_and_inflect_and_unidecode_objects import *
|