




import warnings

from ...utils import logging
from .image_processing_clip import CLIPImageProcessor


__a							     =					logging.get_logger(__name__)

class     __a(	_a  ):






    """simple docstring"""





    def __init__( self  ,*_SCREAMING_SNAKE_CASE  ,**_SCREAMING_SNAKE_CASE    )					->						None:
         warnings.warn(
             '''The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
             ''' use CLIPImageProcessor instead.'''  ,_SCREAMING_SNAKE_CASE  ,)
         super().__init__(*_SCREAMING_SNAKE_CASE  ,**_SCREAMING_SNAKE_CASE    )

"""simple docstring"""



import torch

from diffusers import StableDiffusionPipeline


UpperCamelCase__          =	'path-to-your-trained-model'
UpperCamelCase__          =	StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.floataa).to('cuda')

UpperCamelCase__          =	'A photo of sks dog in a bucket'
UpperCamelCase__          =	pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]

image.save('dog-bucket.png')

