patrickvonplaten
commited on
Commit
•
f13c177
1
Parent(s):
e21a300
up
Browse files- run.py +5 -1
- tarsila_variation.png +2 -2
run.py
CHANGED
@@ -4,8 +4,12 @@ from PIL import Image
|
|
4 |
from io import BytesIO
|
5 |
|
6 |
from diffusers import DiffusionPipeline
|
|
|
7 |
|
8 |
-
|
|
|
|
|
|
|
9 |
pipe.to("cuda")
|
10 |
|
11 |
# get image
|
|
|
4 |
from io import BytesIO
|
5 |
|
6 |
from diffusers import DiffusionPipeline
|
7 |
+
from transformers import CLIPTextModel, CLIPTokenizer, CLIPImageProcessor
|
8 |
|
9 |
+
#text_encoder = CLIPTextModel.from_pretrained("openai/clip-vit-large-patch14")
|
10 |
+
#tokenizer = CLIPTokenizer.from_pretrained("openai/clip-vit-large-patch14")
|
11 |
+
#feature_extractor = CLIPImageProcessor.from_pretrained("openai/clip-vit-large-patch14")
|
12 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-unclip-small", torch_dtype=torch.float16)
|
13 |
pipe.to("cuda")
|
14 |
|
15 |
# get image
|
tarsila_variation.png
CHANGED
Git LFS Details
|
Git LFS Details
|