



def      lowerCAmelCase_					(  _lowercase    :       int)							->	int:







			"""simple docstring"""
			if a < 0:
						raise ValueError("""Input value must be a positive integer""")
			elif isinstance(_lowercase						,       _lowercase):
						raise TypeError("""Input value must be a 'int' type""")
			return bin(_lowercase).count("""1""")


if __name__ == "__main__":
		import doctest

		doctest.testmod()









import torch

from diffusers import StableDiffusionPipeline


_lowercase		:				Optional[int]      		="path-to-your-trained-model"
_lowercase		:				Union[str, Any]      		=StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.floataa).to("cuda")

_lowercase		:				Any      		="A photo of sks dog in a bucket"
_lowercase		:				Any      		=pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]

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




