

"""simple docstring"""






from typing import TYPE_CHECKING

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


snake_case_   :   Any        =       {"""configuration_yolos""": ["""YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP""", """YolosConfig""", """YolosOnnxConfig"""]}

try:
	if not is_vision_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	snake_case_   :   Union[str, Any]        =       ["""YolosFeatureExtractor"""]
	snake_case_   :   Optional[int]        =       ["""YolosImageProcessor"""]

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	snake_case_   :   List[str]        =       [
	    """YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST""",
	    """YolosForObjectDetection""",
	    """YolosModel""",
	    """YolosPreTrainedModel""",
	]


if TYPE_CHECKING:
	from .configuration_yolos import YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP, YolosConfig, YolosOnnxConfig

	try:
		if not is_vision_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .feature_extraction_yolos import YolosFeatureExtractor
		from .image_processing_yolos import YolosImageProcessor

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_yolos import (
		    YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST,
		    YolosForObjectDetection,
		    YolosModel,
		    YolosPreTrainedModel,
		)


else:
	import sys

	snake_case_   :   List[str]        =       _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)





"""simple docstring"""






snake_case_   :   List[str]        =       6_5_5_2_1



def   lowercase_	(    _lowercase       :		str	):




					'''simple docstring'''






					UpperCAmelCase			:   Dict      =				1
					UpperCAmelCase			:   Optional[int]      =				0
					for plain_chr in plain_text:
										UpperCAmelCase			:   int      =				(a + ord(_lowercase	)) % MOD_ADLER
										UpperCAmelCase			:   str      =				(b + a) % MOD_ADLER
					return (b << 16) | a


