patrickvonplaten commited on
Commit
ef759d5
1 Parent(s): 92d22c6
load.py CHANGED
@@ -1,11 +1,11 @@
1
  #!/usr/bin/env python3
2
- from transformers import CLIPTextModel
3
-
4
- print("This should work!:")
5
- model = CLIPTextModel.from_pretrained("./text_encoder", variant="no_ema")
6
- print("This should work!:")
7
- model = CLIPTextModel.from_pretrained("./text_encoder", variant="fp16")
8
- print("This should work!:")
9
- model = CLIPTextModel.from_pretrained("./text_encoder")
10
- print("This should NOT work!:")
11
- model = CLIPTextModel.from_pretrained("./text_encoder", variant="other")
 
1
  #!/usr/bin/env python3
2
+ from diffusers import DiffusionPipeline
3
+
4
+ #for v in ["no_ema", "fp16", None]:
5
+ # p = DiffusionPipeline.from_pretrained("huggingface/the-no-branch-repo", variant=v)
6
+
7
+ for v in ["no_ema", "fp16", None]:
8
+ p = DiffusionPipeline.from_pretrained("./", variant=v)
9
+ p.save_pretrained("./", safe_serialization=True)
10
+
11
+
safety_checker/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d57006243e012298b2d13f63897256151b77e3b3bd5b71ad4e9c924819efdb5f
3
+ size 193430
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcd9bf150bd5fbf04e4a4ba5c141a1a275a2e8d1903a47e82bf764d5dfedbd3b
3
+ size 283923
tokenizer/tokenizer_config.json CHANGED
@@ -19,7 +19,6 @@
19
  },
20
  "errors": "replace",
21
  "model_max_length": 77,
22
- "name_or_path": "/home/patrick/.cache/huggingface/diffusers/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/65bb64ec9a0f1c987380ecf78eade396dfa23d14/tokenizer",
23
  "pad_token": "<|endoftext|>",
24
  "special_tokens_map_file": "/home/lysandre/.cache/huggingface/transformers/18a566598f286c9139f88160c99f84eec492a26bd22738fa9cb44d5b7e0a5c76.cce1206abbad28826f000510f22f354e53e66a97f7c23745a7dfe27609cc07f5",
25
  "tokenizer_class": "CLIPTokenizer",
 
19
  },
20
  "errors": "replace",
21
  "model_max_length": 77,
 
22
  "pad_token": "<|endoftext|>",
23
  "special_tokens_map_file": "/home/lysandre/.cache/huggingface/transformers/18a566598f286c9139f88160c99f84eec492a26bd22738fa9cb44d5b7e0a5c76.cce1206abbad28826f000510f22f354e53e66a97f7c23745a7dfe27609cc07f5",
24
  "tokenizer_class": "CLIPTokenizer",
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:137a26731756858dc16c3e1d66d2b6228645f73616a0ef6157669a73343d284c
3
+ size 5742128
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec0b7c9252141cfb34245a3ac938f05b5f55cd0c65a91d4c04bf311adf092dc
3
+ size 2646507