



'''simple docstring'''




from typing import TYPE_CHECKING

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


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

try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		UpperCamelCase__ :			Tuple												=				['''MaskFormerFeatureExtractor''']
		UpperCamelCase__ :			Optional[int]												=				['''MaskFormerImageProcessor''']


try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		UpperCamelCase__ :			Optional[Any]												=				[
		    '''MASKFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''MaskFormerForInstanceSegmentation''',
		    '''MaskFormerModel''',
		    '''MaskFormerPreTrainedModel''',
		]
		UpperCamelCase__ :			Dict												=				[
		    '''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

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




'''simple docstring'''




from ..utils import DummyObject, requires_backends






class 		_UpperCamelCase						(							metaclass=lowerCamelCase__					):


			'''simple docstring'''

			_A   :	Optional[int]    					=	['''onnx''']

			def __init__(							self  :				List[str]							,  *lowerCAmelCase__  :				Optional[int]							,  **lowerCAmelCase__  :				List[Any]		):





					"""simple docstring"""






					requires_backends(self							,  ["""onnx"""]		)

			@classmethod
			def UpperCamelCase__      (							cls  :				Optional[int]							,  *lowerCAmelCase__  :				int							,  **lowerCAmelCase__  :				int		):





					"""simple docstring"""






					requires_backends(cls							,  ["""onnx"""]		)



			@classmethod
			def UpperCamelCase__      (							cls  :				Tuple							,  *lowerCAmelCase__  :				List[str]							,  **lowerCAmelCase__  :				Optional[Any]		):





					"""simple docstring"""






					requires_backends(cls							,  ["""onnx"""]		)