






"""simple docstring"""



from typing import TYPE_CHECKING

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


_snake_case       :      Tuple       =					{
    "configuration_oneformer": ["ONEFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP", "OneFormerConfig"],
    "processing_oneformer": ["OneFormerProcessor"],
}

try:
						if not is_vision_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_snake_case       :      Optional[int]       =					["OneFormerImageProcessor"]

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_snake_case       :      List[Any]       =					[
						    "ONEFORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "OneFormerForUniversalSegmentation",
						    "OneFormerModel",
						    "OneFormerPreTrainedModel",
						]

if TYPE_CHECKING:
						from .configuration_oneformer import ONEFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, OneFormerConfig
						from .processing_oneformer import OneFormerProcessor

						try:
												if not is_vision_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .image_processing_oneformer import OneFormerImageProcessor
						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_oneformer import (
												    ONEFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
												    OneFormerForUniversalSegmentation,
												    OneFormerModel,
												    OneFormerPreTrainedModel,
												)


else:
						import sys

						_snake_case       :      str       =					_LazyModule(__name__, globals()["__file__"], _import_structure)







"""simple docstring"""



_snake_case       :      Dict       =					[0.485, 0.456, 0.406]
_snake_case       :      int       =					[0.229, 0.224, 0.225]
_snake_case       :      Optional[int]       =					[0.5, 0.5, 0.5]
_snake_case       :      str       =					[0.5, 0.5, 0.5]
_snake_case       :      str       =					[0.4814_5466, 0.457_8275, 0.4082_1073]
_snake_case       :      str       =					[0.2686_2954, 0.2613_0258, 0.2757_7711]