




from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase__            =	logging.get_logger(__name__)

UpperCAmelCase__            =	{
    "ZinengTang/tvlt-base": "https://huggingface.co/ZinengTang/tvlt-base/blob/main/config.json",
}






class 	lowercase_      (			lowercase     ):






      '''simple docstring'''




      __snake_case  						=						'''tvlt'''







      def __init__(   self   :		Tuple				,      __UpperCAmelCase   :		Union[str, Any]=224				,      __UpperCAmelCase   :		int=2_048				,      __UpperCAmelCase   :		Union[str, Any]=128				,      __UpperCAmelCase   :		Tuple=[16, 16]				,      __UpperCAmelCase   :		Optional[Any]=[16, 16]				,      __UpperCAmelCase   :		Tuple=3				,      __UpperCAmelCase   :		Optional[Any]=1				,      __UpperCAmelCase   :		List[Any]=8				,      __UpperCAmelCase   :		Tuple=768				,      __UpperCAmelCase   :		int=12				,      __UpperCAmelCase   :		List[str]=12				,      __UpperCAmelCase   :		str=3_072				,      __UpperCAmelCase   :		Union[str, Any]="gelu"				,      __UpperCAmelCase   :		Union[str, Any]=0.0				,      __UpperCAmelCase   :		Any=0.0				,      __UpperCAmelCase   :		str=0.02				,      __UpperCAmelCase   :		Optional[int]=1e-6				,      __UpperCAmelCase   :		Any=True				,      __UpperCAmelCase   :		int=False				,      __UpperCAmelCase   :		str=16				,      __UpperCAmelCase   :		str=512				,      __UpperCAmelCase   :		int=8				,      __UpperCAmelCase   :		List[str]=2_048				,      __UpperCAmelCase   :		Dict=0.75				,      __UpperCAmelCase   :		List[str]=0.15				,      __UpperCAmelCase   :		List[Any]="frame-level"				,      __UpperCAmelCase   :		List[str]=True				,      __UpperCAmelCase   :		Dict=True				,      __UpperCAmelCase   :		Optional[int]="classification"				,      **__UpperCAmelCase   :		List[str]				,      )					->Optional[Any]:




       """simple docstring"""


       super().__init__(**__UpperCAmelCase						)

       if audio_mask_type not in ("frame-level", "patch_level"):
        raise ValueError(
            '''audio_mask_type must be one of two acceptable strategies - {\'frame_level\', \'patch-level\') '''
            F"""got {audio_mask_type}"""						)

       a							=   image_size
       a							=   spectrogram_length
       a							=   frequency_length
       a							=   image_patch_size
       a							=   audio_patch_size
       a							=   num_image_channels
       a							=   num_audio_channels
       a							=   num_frames

       a							=   hidden_size
       a							=   num_hidden_layers
       a							=   num_attention_heads
       a							=   intermediate_size
       a							=   hidden_act
       a							=   hidden_dropout_prob
       a							=   attention_probs_dropout_prob
       a							=   initializer_range
       a							=   layer_norm_eps
       a							=   qkv_bias
       a							=   use_mean_pooling

       a							=   decoder_num_attention_heads
       a							=   decoder_hidden_size
       a							=   decoder_num_hidden_layers
       a							=   decoder_intermediate_size
       a							=   pixel_mask_ratio
       a							=   audio_mask_ratio
       a							=   audio_mask_type

       a							=   task_matching
       a							=   task_mae
       a							=   loss_type










from ...utils import is_transformers_available
from .pipeline_latent_diffusion_superresolution import LDMSuperResolutionPipeline


if is_transformers_available():
     from .pipeline_latent_diffusion import LDMBertModel, LDMTextToImagePipeline


