patrickvonplaten commited on
Commit
e382143
1 Parent(s): f13c177
Files changed (2) hide show
  1. if_kangaroo.png +3 -0
  2. run.py +1 -1
if_kangaroo.png ADDED

Git LFS Details

  • SHA256: 8a00d3982506f41571fea311e29a6a8845eec6d4b953708daf64788a387ceee6
  • Pointer size: 131 Bytes
  • Size of remote file: 664 kB
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