patrickvonplaten commited on
Commit
179c103
1 Parent(s): ef759d5
load.py CHANGED
@@ -1,11 +1,9 @@
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
-
 
1
  #!/usr/bin/env python3
2
  from diffusers import DiffusionPipeline
3
+ from time import time
 
 
4
 
5
  for v in ["no_ema", "fp16", None]:
6
+ start_time = time()
7
+ p = DiffusionPipeline.from_pretrained("huggingface/the-no-branch-repo", variant=v)
8
+ p.save_pretrained("./", safe_serialization=True, variant=v)
9
+ print(time() - start_time)
safety_checker/config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "_commit_hash": null,
3
- "_name_or_path": "./safety_checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
6
  ],
 
1
  {
2
+ "_commit_hash": "ef759d5db7df8943ccdb50d9fedb095bdaf720e2",
3
+ "_name_or_path": "/home/patrick/.cache/huggingface/diffusers/models--huggingface--the-no-branch-repo/snapshots/ef759d5db7df8943ccdb50d9fedb095bdaf720e2/safety_checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
6
  ],
text_encoder/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "./text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "/home/patrick/.cache/huggingface/diffusers/models--huggingface--the-no-branch-repo/snapshots/ef759d5db7df8943ccdb50d9fedb095bdaf720e2/text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
unet/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.13.0.dev0",
4
- "_name_or_path": "./unet",
5
  "act_fn": "silu",
6
  "attention_head_dim": 8,
7
  "block_out_channels": [
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.13.0.dev0",
4
+ "_name_or_path": "/home/patrick/.cache/huggingface/diffusers/models--huggingface--the-no-branch-repo/snapshots/ef759d5db7df8943ccdb50d9fedb095bdaf720e2/unet",
5
  "act_fn": "silu",
6
  "attention_head_dim": 8,
7
  "block_out_channels": [
unet/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:137a26731756858dc16c3e1d66d2b6228645f73616a0ef6157669a73343d284c
3
+ size 5742128
unet/diffusion_pytorch_model.no_ema.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:137a26731756858dc16c3e1d66d2b6228645f73616a0ef6157669a73343d284c
3
+ size 5742128
vae/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.13.0.dev0",
4
- "_name_or_path": "./vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  32,
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.13.0.dev0",
4
+ "_name_or_path": "/home/patrick/.cache/huggingface/diffusers/models--huggingface--the-no-branch-repo/snapshots/ef759d5db7df8943ccdb50d9fedb095bdaf720e2/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  32,
vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec0b7c9252141cfb34245a3ac938f05b5f55cd0c65a91d4c04bf311adf092dc
3
+ size 2646507
vae/diffusion_pytorch_model.no_ema.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ec0b7c9252141cfb34245a3ac938f05b5f55cd0c65a91d4c04bf311adf092dc
3
+ size 2646507