





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible

class 	UpperCamelCase__				(   unittest.TestCase     ):



     '''simple docstring'''

     def        SCREAMING_SNAKE_CASE__						(							self		:					Tuple )  ->	Dict:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.bin""",
               """safety_checker/model.safetensors""",
               """vae/diffusion_pytorch_model.bin""",
               """vae/diffusion_pytorch_model.safetensors""",
               """text_encoder/pytorch_model.bin""",
               """text_encoder/model.safetensors""",
               """unet/diffusion_pytorch_model.bin""",
               """unet/diffusion_pytorch_model.safetensors""",
           ]
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					int )  ->	Optional[Any]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """unet/diffusion_pytorch_model.bin""",
               """unet/diffusion_pytorch_model.safetensors""",
           ]
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[Any] )  ->	int:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.bin""",
               """safety_checker/model.safetensors""",
               """vae/diffusion_pytorch_model.bin""",
               """vae/diffusion_pytorch_model.safetensors""",
               """text_encoder/pytorch_model.bin""",
               """text_encoder/model.safetensors""",
               """unet/diffusion_pytorch_model.bin""",
               # Removed: 'unet/diffusion_pytorch_model.safetensors',
           ]
           self.assertFalse(is_safetensors_compatible(lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[Any] )  ->	Dict:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """text_encoder/pytorch_model.bin""",
               """text_encoder/model.safetensors""",
           ]
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Dict )  ->	Union[str, Any]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.bin""",
               """safety_checker/model.safetensors""",
               """vae/diffusion_pytorch_model.bin""",
               """vae/diffusion_pytorch_model.safetensors""",
               """text_encoder/pytorch_model.bin""",
               # Removed: 'text_encoder/model.safetensors',
               """unet/diffusion_pytorch_model.bin""",
               """unet/diffusion_pytorch_model.safetensors""",
           ]
           self.assertFalse(is_safetensors_compatible(lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Dict )  ->	Union[str, Any]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.fp16.bin""",
               """safety_checker/model.fp16.safetensors""",
               """vae/diffusion_pytorch_model.fp16.bin""",
               """vae/diffusion_pytorch_model.fp16.safetensors""",
               """text_encoder/pytorch_model.fp16.bin""",
               """text_encoder/model.fp16.safetensors""",
               """unet/diffusion_pytorch_model.fp16.bin""",
               """unet/diffusion_pytorch_model.fp16.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					str )  ->	List[Any]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """unet/diffusion_pytorch_model.fp16.bin""",
               """unet/diffusion_pytorch_model.fp16.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[int] )  ->	int:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """unet/diffusion_pytorch_model.bin""",
               """unet/diffusion_pytorch_model.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[Any] )  ->	Tuple:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.fp16.bin""",
               """safety_checker/model.fp16.safetensors""",
               """vae/diffusion_pytorch_model.fp16.bin""",
               """vae/diffusion_pytorch_model.fp16.safetensors""",
               """text_encoder/pytorch_model.fp16.bin""",
               """text_encoder/model.fp16.safetensors""",
               """unet/diffusion_pytorch_model.fp16.bin""",
               # Removed: 'unet/diffusion_pytorch_model.fp16.safetensors',
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertFalse(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					str )  ->	List[str]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """text_encoder/pytorch_model.fp16.bin""",
               """text_encoder/model.fp16.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[Any] )  ->	Tuple:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """text_encoder/pytorch_model.bin""",
               """text_encoder/model.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertTrue(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )






     def        SCREAMING_SNAKE_CASE__						(							self		:					Optional[Any] )  ->	str:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE	=		[
               """safety_checker/pytorch_model.fp16.bin""",
               """safety_checker/model.fp16.safetensors""",
               """vae/diffusion_pytorch_model.fp16.bin""",
               """vae/diffusion_pytorch_model.fp16.safetensors""",
               """text_encoder/pytorch_model.fp16.bin""",
               # 'text_encoder/model.fp16.safetensors',
               """unet/diffusion_pytorch_model.fp16.bin""",
               """unet/diffusion_pytorch_model.fp16.safetensors""",
           ]
           SCREAMING_SNAKE_CASE	=		"""fp16"""
           self.assertFalse(is_safetensors_compatible(lowerCamelCase__		,variant=lowerCamelCase__ ) )









import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


SCREAMING_SNAKE_CASE_		     = logging.get_logger(__name__)

class 	UpperCamelCase__				(   lowerCAmelCase_     ):



     '''simple docstring'''

     def __init__(							self		:					int		,*lowerCamelCase__		:					int		,**lowerCamelCase__		:					List[Any] )  ->	None:




           '''simple docstring'''


           warnings.warn(
               """The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
               """ Please use DeformableDetrImageProcessor instead."""		,lowerCamelCase__		,)
           super().__init__(*lowerCamelCase__		,**lowerCamelCase__ )


