



'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_lowerCAmelCase										=     {
    '''configuration_maskformer''': ['''MASKFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''MaskFormerConfig'''],
    '''configuration_maskformer_swin''': ['''MaskFormerSwinConfig'''],
}

try:
 if not is_vision_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _lowerCAmelCase										=     ['''MaskFormerFeatureExtractor''']
 _lowerCAmelCase										=     ['''MaskFormerImageProcessor''']


try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _lowerCAmelCase										=     [
     '''MASKFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
     '''MaskFormerForInstanceSegmentation''',
     '''MaskFormerModel''',
     '''MaskFormerPreTrainedModel''',
 ]
 _lowerCAmelCase										=     [
     '''MaskFormerSwinBackbone''',
     '''MaskFormerSwinModel''',
     '''MaskFormerSwinPreTrainedModel''',
 ]

if TYPE_CHECKING:
 from .configuration_maskformer import MASKFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, MaskFormerConfig
 from .configuration_maskformer_swin import MaskFormerSwinConfig

 try:
  if not is_vision_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .feature_extraction_maskformer import MaskFormerFeatureExtractor
  from .image_processing_maskformer import MaskFormerImageProcessor
 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_maskformer import (
      MASKFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
      MaskFormerForInstanceSegmentation,
      MaskFormerModel,
      MaskFormerPreTrainedModel,
  )
  from .modeling_maskformer_swin import (
      MaskFormerSwinBackbone,
      MaskFormerSwinModel,
      MaskFormerSwinPreTrainedModel,
  )


else:
 import sys

 _lowerCAmelCase										=     _LazyModule(__name__, globals()['''__file__'''], _import_structure)







'''simple docstring'''





import copy
from dataclasses import dataclass
from pathlib import Path
from typing import Dict, Optional, Union






@dataclass
class 	lowerCAmelCase_:
  '''simple docstring'''




  __lowercase							:				Optional[Union[str, Path]]           =				None
  __lowercase							:				bool           =				False
  __lowercase							:				bool           =				False
  __lowercase							:				bool           =				False
  __lowercase							:				Optional[Dict]           =				None
  __lowercase							:				Optional[str]           =				None
  __lowercase							:				bool           =				False
  __lowercase							:				bool           =				False
  __lowercase							:				bool           =				False
  __lowercase							:				bool           =				True
  __lowercase							:				Optional[int]           =				None
  __lowercase							:				int           =				1
  __lowercase							:				Optional[Union[str, bool]]           =				None
  __lowercase							:				bool           =				False
  __lowercase							:				Optional[Dict]           =				None
  __lowercase							:				Optional[str]           =				None




  def 							UpperCAmelCase_     (   self				)   ->		"DownloadConfig":
      return self.__class__(**{k: copy.deepcopy(__UpperCAmelCase				) for k, v in self.__dict__.items()}				)


