



'''simple docstring'''


from math import factorial, radians






def  UpperCAmelCase_       (		lowercase__       ,	lowercase__ = 1_8       ,	lowercase__ = 1_0       ):


     '''simple docstring'''







     a_       		=angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

     # Converting from degrees to radians
     a_       		=radians(lowercase__       )

     a_       		=angle_in_radians
     a_       		=3
     a_       		=-1

     for _ in range(lowercase__       ):
          result += (b * (angle_in_radians**a)) / factorial(lowercase__       )

          a_       		=-b  # One positive term and the next will be negative and so on...
          a += 2  # Increased by 2 for every term.

     return round(lowercase__       ,	lowercase__       )


if __name__ == "__main__":
  __import__('''doctest''').testmod()







'''simple docstring'''


import torch

from diffusers import StableDiffusionPipeline


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

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

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


