rowenac commited on
Commit
73dd5d8
1 Parent(s): 803f9b1

Adding `diffusers` weights of this model

Browse files

This PR adds fp32 and fp16 weights in PyTorch and safetensors format to rowenac/vintagechinesecomics

feature_extractor/preprocessor_config.json CHANGED
@@ -1,8 +1,12 @@
1
  {
2
- "crop_size": 224,
 
 
 
3
  "do_center_crop": true,
4
  "do_convert_rgb": true,
5
  "do_normalize": true,
 
6
  "do_resize": true,
7
  "feature_extractor_type": "CLIPFeatureExtractor",
8
  "image_mean": [
@@ -10,11 +14,15 @@
10
  0.4578275,
11
  0.40821073
12
  ],
 
13
  "image_std": [
14
  0.26862954,
15
  0.26130258,
16
  0.27577711
17
  ],
18
  "resample": 3,
19
- "size": 224
 
 
 
20
  }
 
1
  {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
  "do_center_crop": true,
7
  "do_convert_rgb": true,
8
  "do_normalize": true,
9
+ "do_rescale": true,
10
  "do_resize": true,
11
  "feature_extractor_type": "CLIPFeatureExtractor",
12
  "image_mean": [
 
14
  0.4578275,
15
  0.40821073
16
  ],
17
+ "image_processor_type": "CLIPFeatureExtractor",
18
  "image_std": [
19
  0.26862954,
20
  0.26130258,
21
  0.27577711
22
  ],
23
  "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "shortest_edge": 224
27
+ }
28
  }
model_index.json CHANGED
@@ -1,33 +1,33 @@
1
  {
2
- "_class_name": "StableDiffusionPipeline",
3
- "_diffusers_version": "0.10.2",
4
- "feature_extractor": [
5
- null,
6
- null
7
- ],
8
- "requires_safety_checker": null,
9
- "safety_checker": [
10
- null,
11
- null
12
- ],
13
- "scheduler": [
14
- "diffusers",
15
- "DEISMultistepScheduler"
16
- ],
17
- "text_encoder": [
18
- "transformers",
19
- "CLIPTextModel"
20
- ],
21
- "tokenizer": [
22
- "transformers",
23
- "CLIPTokenizer"
24
- ],
25
- "unet": [
26
- "diffusers",
27
- "UNet2DConditionModel"
28
- ],
29
- "vae": [
30
- "diffusers",
31
- "AutoencoderKL"
32
- ]
33
- }
 
1
  {
2
+ "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.18.0.dev0",
4
+ "feature_extractor": [
5
+ "transformers",
6
+ "CLIPFeatureExtractor"
7
+ ],
8
+ "requires_safety_checker": true,
9
+ "safety_checker": [
10
+ "stable_diffusion",
11
+ "StableDiffusionSafetyChecker"
12
+ ],
13
+ "scheduler": [
14
+ "diffusers",
15
+ "DPMSolverMultistepScheduler"
16
+ ],
17
+ "text_encoder": [
18
+ "transformers",
19
+ "CLIPTextModel"
20
+ ],
21
+ "tokenizer": [
22
+ "transformers",
23
+ "CLIPTokenizer"
24
+ ],
25
+ "unet": [
26
+ "diffusers",
27
+ "UNet2DConditionModel"
28
+ ],
29
+ "vae": [
30
+ "diffusers",
31
+ "AutoencoderKL"
32
+ ]
33
+ }
safety_checker/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_commit_hash": "4bb648a606ef040e7685bde262611766a5fdd67b",
3
  "_name_or_path": "CompVis/stable-diffusion-safety-checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
@@ -14,6 +14,7 @@
14
  "architectures": null,
15
  "attention_dropout": 0.0,
16
  "bad_words_ids": null,
 
17
  "bos_token_id": 0,
18
  "chunk_size_feed_forward": 0,
19
  "cross_attention_hidden_size": null,
@@ -61,12 +62,14 @@
61
  "pad_token_id": 1,
62
  "prefix": null,
63
  "problem_type": null,
 
64
  "pruned_heads": {},
65
  "remove_invalid_values": false,
66
  "repetition_penalty": 1.0,
67
  "return_dict": true,
68
  "return_dict_in_generate": false,
69
  "sep_token_id": null,
 
70
  "task_specific_params": null,
71
  "temperature": 1.0,
72
  "tf_legacy_loss": false,
@@ -77,18 +80,12 @@
77
  "top_p": 1.0,
78
  "torch_dtype": null,
79
  "torchscript": false,
80
- "transformers_version": "4.22.0.dev0",
81
  "typical_p": 1.0,
82
  "use_bfloat16": false,
83
  "vocab_size": 49408
84
  },
85
- "text_config_dict": {
86
- "hidden_size": 768,
87
- "intermediate_size": 3072,
88
- "num_attention_heads": 12,
89
- "num_hidden_layers": 12
90
- },
91
- "torch_dtype": "float32",
92
  "transformers_version": null,
93
  "vision_config": {
94
  "_name_or_path": "",
@@ -96,6 +93,7 @@
96
  "architectures": null,
97
  "attention_dropout": 0.0,
98
  "bad_words_ids": null,
 
99
  "bos_token_id": null,
100
  "chunk_size_feed_forward": 0,
101
  "cross_attention_hidden_size": null,
@@ -145,12 +143,14 @@
145
  "patch_size": 14,
146
  "prefix": null,
147
  "problem_type": null,
 
148
  "pruned_heads": {},
149
  "remove_invalid_values": false,
150
  "repetition_penalty": 1.0,
151
  "return_dict": true,
152
  "return_dict_in_generate": false,
153
  "sep_token_id": null,
 
154
  "task_specific_params": null,
155
  "temperature": 1.0,
156
  "tf_legacy_loss": false,
@@ -161,15 +161,8 @@
161
  "top_p": 1.0,
162
  "torch_dtype": null,
163
  "torchscript": false,
164
- "transformers_version": "4.22.0.dev0",
165
  "typical_p": 1.0,
166
  "use_bfloat16": false
167
- },
168
- "vision_config_dict": {
169
- "hidden_size": 1024,
170
- "intermediate_size": 4096,
171
- "num_attention_heads": 16,
172
- "num_hidden_layers": 24,
173
- "patch_size": 14
174
  }
175
  }
 
1
  {
2
+ "_commit_hash": "cb41f3a270d63d454d385fc2e4f571c487c253c5",
3
  "_name_or_path": "CompVis/stable-diffusion-safety-checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
 
14
  "architectures": null,
15
  "attention_dropout": 0.0,
16
  "bad_words_ids": null,
17
+ "begin_suppress_tokens": null,
18
  "bos_token_id": 0,
19
  "chunk_size_feed_forward": 0,
20
  "cross_attention_hidden_size": null,
 
62
  "pad_token_id": 1,
63
  "prefix": null,
64
  "problem_type": null,
65
+ "projection_dim": 512,
66
  "pruned_heads": {},
67
  "remove_invalid_values": false,
68
  "repetition_penalty": 1.0,
69
  "return_dict": true,
70
  "return_dict_in_generate": false,
71
  "sep_token_id": null,
72
+ "suppress_tokens": null,
73
  "task_specific_params": null,
74
  "temperature": 1.0,
75
  "tf_legacy_loss": false,
 
80
  "top_p": 1.0,
81
  "torch_dtype": null,
82
  "torchscript": false,
83
+ "transformers_version": "4.30.2",
84
  "typical_p": 1.0,
85
  "use_bfloat16": false,
86
  "vocab_size": 49408
87
  },
88
+ "torch_dtype": "float16",
 
 
 
 
 
 
89
  "transformers_version": null,
90
  "vision_config": {
91
  "_name_or_path": "",
 
93
  "architectures": null,
94
  "attention_dropout": 0.0,
95
  "bad_words_ids": null,
96
+ "begin_suppress_tokens": null,
97
  "bos_token_id": null,
98
  "chunk_size_feed_forward": 0,
99
  "cross_attention_hidden_size": null,
 
143
  "patch_size": 14,
144
  "prefix": null,
145
  "problem_type": null,
146
+ "projection_dim": 512,
147
  "pruned_heads": {},
148
  "remove_invalid_values": false,
149
  "repetition_penalty": 1.0,
150
  "return_dict": true,
151
  "return_dict_in_generate": false,
152
  "sep_token_id": null,
153
+ "suppress_tokens": null,
154
  "task_specific_params": null,
155
  "temperature": 1.0,
156
  "tf_legacy_loss": false,
 
161
  "top_p": 1.0,
162
  "torch_dtype": null,
163
  "torchscript": false,
164
+ "transformers_version": "4.30.2",
165
  "typical_p": 1.0,
166
  "use_bfloat16": false
 
 
 
 
 
 
 
167
  }
168
  }
safety_checker/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8
3
- size 1215981830
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11cfe53105625af8c00faac32a430626641cce686454f3c39d837f14397d858b
3
+ size 1215981832
safety_checker/pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:193490b58ef62739077262e833bf091c66c29488058681ac25cf7df3d8190974
3
- size 1216061799
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16d28f2b37109f222cdc33620fdd262102ac32112be0352a7f77e9614b35a394
3
+ size 1216064769
scheduler/scheduler_config.json CHANGED
@@ -1,13 +1,26 @@
1
  {
2
- "_class_name": "PNDMScheduler",
3
- "_diffusers_version": "0.6.0",
 
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
 
 
 
 
 
7
  "num_train_timesteps": 1000,
 
 
 
8
  "set_alpha_to_one": false,
9
- "skip_prk_steps": true,
 
10
  "steps_offset": 1,
 
 
11
  "trained_betas": null,
12
- "clip_sample": false
 
13
  }
 
1
  {
2
+ "_class_name": "DPMSolverMultistepScheduler",
3
+ "_diffusers_version": "0.18.0.dev0",
4
+ "algorithm_type": "dpmsolver++",
5
  "beta_end": 0.012,
6
  "beta_schedule": "scaled_linear",
7
  "beta_start": 0.00085,
8
+ "clip_sample": false,
9
+ "clip_sample_range": 1.0,
10
+ "dynamic_thresholding_ratio": 0.995,
11
+ "lambda_min_clipped": -Infinity,
12
+ "lower_order_final": true,
13
  "num_train_timesteps": 1000,
14
+ "prediction_type": "epsilon",
15
+ "rescale_betas_zero_snr": false,
16
+ "sample_max_value": 1.0,
17
  "set_alpha_to_one": false,
18
+ "solver_order": 2,
19
+ "solver_type": "midpoint",
20
  "steps_offset": 1,
21
+ "thresholding": false,
22
+ "timestep_spacing": "leading",
23
  "trained_betas": null,
24
+ "use_karras_sigmas": false,
25
+ "variance_type": null
26
  }
text_encoder/config.json CHANGED
@@ -19,7 +19,7 @@
19
  "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
  "projection_dim": 768,
22
- "torch_dtype": "float32",
23
- "transformers_version": "4.22.0.dev0",
24
  "vocab_size": 49408
25
  }
 
19
  "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
  "projection_dim": 768,
22
+ "torch_dtype": "float16",
23
+ "transformers_version": "4.30.2",
24
  "vocab_size": 49408
25
  }
text_encoder/model.fp16.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77795e2023adcf39bc29a884661950380bd093cf0750a966d473d1718dc9ef4e
3
  size 246144864
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0015c415929a8b8b49dd5cf90fdbf43ac7061e7d8f1e9be5134e1bd0e2d2f11
3
  size 246144864
text_encoder/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d008943c017f0092921106440254dbbe00b6a285f7883ec8ba160c3faad88334
3
- size 492265874
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ec9ff53f7e708239f3653e7ccb4f8921e25b21add7bf4f04692f211a9f3b96d
3
+ size 492265880
text_encoder/pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:770a47a9ffdcfda0b05506a7888ed714d06131d60267e6cf52765d61cf59fd67
3
- size 492305335
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:858b979347883f1b6eab988d9644bbea0fc91af5eb42ab81b64ad0c38ba589a4
3
+ size 492307041
text_encoder/pytorch_model.fp16.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:05eee911f195625deeab86f0b22b115d7d8bc3adbfc1404f03557f7e4e6a8fd7
3
  size 246187076
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6015720b88647568ebc627db9e5dd5e8a718b6b343f483e86501afd2a946f80f
3
  size 246187076
tokenizer/tokenizer_config.json CHANGED
@@ -8,6 +8,7 @@
8
  "rstrip": false,
9
  "single_word": false
10
  },
 
11
  "do_lower_case": true,
12
  "eos_token": {
13
  "__type": "AddedToken",
@@ -19,9 +20,7 @@
19
  },
20
  "errors": "replace",
21
  "model_max_length": 77,
22
- "name_or_path": "openai/clip-vit-large-patch14",
23
  "pad_token": "<|endoftext|>",
24
- "special_tokens_map_file": "./special_tokens_map.json",
25
  "tokenizer_class": "CLIPTokenizer",
26
  "unk_token": {
27
  "__type": "AddedToken",
 
8
  "rstrip": false,
9
  "single_word": false
10
  },
11
+ "clean_up_tokenization_spaces": true,
12
  "do_lower_case": true,
13
  "eos_token": {
14
  "__type": "AddedToken",
 
20
  },
21
  "errors": "replace",
22
  "model_max_length": 77,
 
23
  "pad_token": "<|endoftext|>",
 
24
  "tokenizer_class": "CLIPTokenizer",
25
  "unk_token": {
26
  "__type": "AddedToken",
unet/config.json CHANGED
@@ -1,7 +1,9 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
- "_diffusers_version": "0.6.0",
4
  "act_fn": "silu",
 
 
5
  "attention_head_dim": 8,
6
  "block_out_channels": [
7
  320,
@@ -10,7 +12,12 @@
10
  1280
11
  ],
12
  "center_input_sample": false,
 
 
 
 
13
  "cross_attention_dim": 768,
 
14
  "down_block_types": [
15
  "CrossAttnDownBlock2D",
16
  "CrossAttnDownBlock2D",
@@ -18,19 +25,38 @@
18
  "DownBlock2D"
19
  ],
20
  "downsample_padding": 1,
 
 
 
21
  "flip_sin_to_cos": true,
22
  "freq_shift": 0,
23
  "in_channels": 4,
24
  "layers_per_block": 2,
 
25
  "mid_block_scale_factor": 1,
 
26
  "norm_eps": 1e-05,
27
  "norm_num_groups": 32,
 
 
 
28
  "out_channels": 4,
 
 
 
 
29
  "sample_size": 64,
 
 
 
 
 
30
  "up_block_types": [
31
  "UpBlock2D",
32
  "CrossAttnUpBlock2D",
33
  "CrossAttnUpBlock2D",
34
  "CrossAttnUpBlock2D"
35
- ]
 
 
36
  }
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "act_fn": "silu",
5
+ "addition_embed_type": null,
6
+ "addition_embed_type_num_heads": 64,
7
  "attention_head_dim": 8,
8
  "block_out_channels": [
9
  320,
 
12
  1280
13
  ],
14
  "center_input_sample": false,
15
+ "class_embed_type": null,
16
+ "class_embeddings_concat": false,
17
+ "conv_in_kernel": 3,
18
+ "conv_out_kernel": 3,
19
  "cross_attention_dim": 768,
20
+ "cross_attention_norm": null,
21
  "down_block_types": [
22
  "CrossAttnDownBlock2D",
23
  "CrossAttnDownBlock2D",
 
25
  "DownBlock2D"
26
  ],
27
  "downsample_padding": 1,
28
+ "dual_cross_attention": false,
29
+ "encoder_hid_dim": null,
30
+ "encoder_hid_dim_type": null,
31
  "flip_sin_to_cos": true,
32
  "freq_shift": 0,
33
  "in_channels": 4,
34
  "layers_per_block": 2,
35
+ "mid_block_only_cross_attention": null,
36
  "mid_block_scale_factor": 1,
37
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
38
  "norm_eps": 1e-05,
39
  "norm_num_groups": 32,
40
+ "num_attention_heads": null,
41
+ "num_class_embeds": null,
42
+ "only_cross_attention": false,
43
  "out_channels": 4,
44
+ "projection_class_embeddings_input_dim": null,
45
+ "resnet_out_scale_factor": 1.0,
46
+ "resnet_skip_time_act": false,
47
+ "resnet_time_scale_shift": "default",
48
  "sample_size": 64,
49
+ "time_cond_proj_dim": null,
50
+ "time_embedding_act_fn": null,
51
+ "time_embedding_dim": null,
52
+ "time_embedding_type": "positional",
53
+ "timestep_post_act": null,
54
  "up_block_types": [
55
  "UpBlock2D",
56
  "CrossAttnUpBlock2D",
57
  "CrossAttnUpBlock2D",
58
  "CrossAttnUpBlock2D"
59
+ ],
60
+ "upcast_attention": null,
61
+ "use_linear_projection": false
62
  }
unet/diffusion_pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7da0e21ba7ea50637bee26e81c220844defdf01aafca02b2c42ecdadb813de4
3
- size 3438354725
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d809797a60aeed61eb98f88d0c36846d1b05285815e0d3e0e26ad8410e42d1f5
3
+ size 3438366373
unet/diffusion_pytorch_model.fp16.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:30eb3dc47c90e4a55476332b284b2331774c530edbbb83b70cacdd9e7b91af92
3
  size 1719327893
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:914513b197e7d66b4aa00320d58cd284c7c8f28edb500268eb46b3710ed48832
3
  size 1719327893
unet/diffusion_pytorch_model.fp16.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c83908253f9a64d08c25fc90874c9c8aef9a329ce1ca5fb909d73b0c83d1ea21
3
  size 1719125304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63c7f3d6ffa1f0d585574f43b595bed2620c65c303f27aaaa89bb57e3d266928
3
  size 1719125304
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:19da7aaa4b880e59d56843f1fcb4dd9b599c28a1d9d9af7c1143057c8ffae9f1
3
- size 3438167540
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8c9acb3b65f70f89f59ef1ceb2ab372a499ca4c925552b4dda0aa2a29cfb7c1
3
+ size 3438167536
vae/config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.6.0",
4
  "act_fn": "silu",
5
  "block_out_channels": [
6
  128,
@@ -20,6 +20,7 @@
20
  "norm_num_groups": 32,
21
  "out_channels": 3,
22
  "sample_size": 512,
 
23
  "up_block_types": [
24
  "UpDecoderBlock2D",
25
  "UpDecoderBlock2D",
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "act_fn": "silu",
5
  "block_out_channels": [
6
  128,
 
20
  "norm_num_groups": 32,
21
  "out_channels": 3,
22
  "sample_size": 512,
23
+ "scaling_factor": 0.18215,
24
  "up_block_types": [
25
  "UpDecoderBlock2D",
26
  "UpDecoderBlock2D",
vae/diffusion_pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1b134cded8eb78b184aefb8805b6b572f36fa77b255c483665dda931fa0130c5
3
- size 334707217
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bc6d71b9f9ec957f9406202eda0c9e17117ccb5b4bbdb1cc0c3ead413029d90
3
+ size 334712113
vae/diffusion_pytorch_model.fp16.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b7643b3e40b9f128eda5fe174fea73c3ef3903562651fb344a79439709c2e503
3
  size 167405651
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbfc384b11302ff776741bc6d0091283c4d26b79755c5c8ba241fdadfe67b538
3
  size 167405651
vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a08607e9d4f473d67a63070490db0c1e95b50d94789dc02b63851ace9a79d44
3
+ size 167335342
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d10ca1960f9f889bf2256b2fafec29e8ead742967d5a34b635549437bcc9b825
3
+ size 334643268