patrickvonplaten commited on
Commit
f13c177
1 Parent(s): e21a300
Files changed (2) hide show
  1. run.py +5 -1
  2. 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
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-unclip-small", torch_dtype=torch.float16, variant="fp16")
 
 
 
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

  • SHA256: 161adf0491c48ef12beef779008cadb28a6321db7e5fc86afae6f83a938137ba
  • Pointer size: 131 Bytes
  • Size of remote file: 792 kB

Git LFS Details

  • SHA256: 632f239fe060ca26a8cc567eac6c85219fde08485b66cfdcae6418d2cf920d51
  • Pointer size: 131 Bytes
  • Size of remote file: 931 kB