|
language: en |
|
|
|
## Example Usage |
|
|
|
```python |
|
from diffusers import StableDiffusionPipeline |
|
import torch |
|
|
|
model_path = "Sourabh2/Human_Face_generator" |
|
pipe = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16) |
|
pipe.to("cuda") |
|
|
|
prompt = "" |
|
|
|
image = pipe(prompt=prompt).images[0] |
|
image.save("generated_image.png") |
|
``` |
|
|
|
## Example Output |
|
![pareto](https://huggingface.co/Sourabh2/Emoji/resolve/main/yoda-pokemon%20(3).png) |
|
![pareto](https://huggingface.co/Sourabh2/Emoji/resolve/main/yoda-pokemon%20(4).png) |