patrickvonplaten
commited on
Commit
•
e382143
1
Parent(s):
f13c177
up
Browse files- if_kangaroo.png +3 -0
- run.py +1 -1
if_kangaroo.png
ADDED
Git LFS Details
|
run.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import CLIPTextModel, CLIPTokenizer, CLIPImageProcessor
|
|
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
|
|
|
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, variant="fp16")
|
13 |
pipe.to("cuda")
|
14 |
|
15 |
# get image
|