




'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase_       :  Optional[Any]      =		{
    '''configuration_musicgen''': [
        '''MUSICGEN_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''MusicgenConfig''',
        '''MusicgenDecoderConfig''',
    ],
    '''processing_musicgen''': ['''MusicgenProcessor'''],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase_       :  str      =		[
         '''MUSICGEN_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''MusicgenForConditionalGeneration''',
         '''MusicgenForCausalLM''',
         '''MusicgenModel''',
         '''MusicgenPreTrainedModel''',
     ]

if TYPE_CHECKING:
     from .configuration_musicgen import (
         MUSICGEN_PRETRAINED_CONFIG_ARCHIVE_MAP,
         MusicgenConfig,
         MusicgenDecoderConfig,
     )
     from .processing_musicgen import MusicgenProcessor

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_musicgen import (
              MUSICGEN_PRETRAINED_MODEL_ARCHIVE_LIST,
              MusicgenForCausalLM,
              MusicgenForConditionalGeneration,
              MusicgenModel,
              MusicgenPreTrainedModel,
          )

else:
     import sys

     UpperCAmelCase_       :  Union[str, Any]      =		_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)












'''simple docstring'''



import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


UpperCAmelCase_       :  int      =		logging.get_logger(__name__)





class     lowerCAmelCase   ( __lowerCAmelCase):


       def __init__(   self    ,  *__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )      ->  None:



            '''simple docstring'''




            warnings.warn(
                '''The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
                ''' Please use MaskFormerImageProcessor instead.'''    ,  __SCREAMING_SNAKE_CASE    ,  )
            super().__init__(*__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )






