patrickvonplaten commited on
Commit
0e19214
1 Parent(s): d7b62eb

Create README.md

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