
'''simple docstring'''





import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


a__						:				Union[str, Any]           =    logging.get_logger(__name__)


class 	UpperCamelCase__					(      SCREAMING_SNAKE_CASE):






 def __init__(     self					:int		,			*_A					:str		,			**_A					:List[str]     )			->     None:







       '''simple docstring'''



       warnings.warn(
           'The class LevitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
           ' use LevitImageProcessor instead.'		,			_A		,			)
       super().__init__(*_A		,			**_A     )








'''simple docstring'''





import unittest

import torch

from diffusers import DDIMScheduler, TextToVideoZeroPipeline
from diffusers.utils import load_pt, require_torch_gpu, slow

from ..test_pipelines_common import assert_mean_pixel_difference


@slow
@require_torch_gpu
class 	UpperCamelCase__					(      unittest.TestCase):






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







       '''simple docstring'''



       __A    		=     'runwayml/stable-diffusion-v1-5'
       __A    		=     TextToVideoZeroPipeline.from_pretrained(_A		,			torch_dtype=torch.floataa     ).to('cuda'     )
       __A    		=     DDIMScheduler.from_config(pipe.scheduler.config     )
       __A    		=     torch.Generator(device='cuda'     ).manual_seed(0     )

       __A    		=     'A bear is playing a guitar on Times Square'
       __A    		=     pipe(prompt=_A		,			generator=_A     ).images

       __A    		=     load_pt(
           'https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/text-to-video/A bear is playing a guitar on Times Square.pt'     )

       assert_mean_pixel_difference(_A		,			_A     )






