declare-lab/tango2
92
1# Copyright 2023 The HuggingFace Team. All rights reserved.2#3# Licensed under the Apache License, Version 2.0 (the "License");4# you may not use this file except in compliance with the License.5# You may obtain a copy of the License at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS,11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12# See the License for the specific language governing permissions and13# limitations under the License.14 15from ..utils import is_flax_available, is_torch_available16 17 18if is_torch_available():19 from .autoencoder_kl import AutoencoderKL20 from .controlnet import ControlNetModel21 from .dual_transformer_2d import DualTransformer2DModel22 from .modeling_utils import ModelMixin23 from .prior_transformer import PriorTransformer24 from .t5_film_transformer import T5FilmDecoder25 from .transformer_2d import Transformer2DModel26 from .unet_1d import UNet1DModel27 from .unet_2d import UNet2DModel28 from .unet_2d_condition import UNet2DConditionModel29 from .unet_3d_condition import UNet3DConditionModel30 from .vq_model import VQModel31 32if is_flax_available():33 from .controlnet_flax import FlaxControlNetModel34 from .unet_2d_condition_flax import FlaxUNet2DConditionModel35 from .vae_flax import FlaxAutoencoderKL36 