File size: 465 Bytes
0e19214 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
```python
from diffusers import UnCLIPPipeline
import torch
import random
import numpy as np
pipe = UnCLIPPipeline.from_pretrained("fusing/karlo_unclip", torch_dtype=torch.float16)
pipe = pipe.to('cuda')
prompt = "a high-resolution photograph of a big red frog on a green leaf."
image = pipe([prompt]).images[0]
image.save("/home/patrick_huggingface_co/images/frog.png")
```
![img](https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/frog.png) |