azhang42 commited on
Commit
242d0bd
1 Parent(s): d19eb00

Upload folder using huggingface_hub

Browse files
feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": [
13
+ 0.48145466,
14
+ 0.4578275,
15
+ 0.40821073
16
+ ],
17
+ "image_processor_type": "CLIPImageProcessor",
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,8 +1,16 @@
1
  {
2
- "_class_name": "StableDiffusionXLPipeline",
3
  "_diffusers_version": "0.23.1",
4
- "_name_or_path": "stabilityai/stable-diffusion-xl-base-1.0",
5
- "force_zeros_for_empty_prompt": true,
 
 
 
 
 
 
 
 
6
  "scheduler": [
7
  "diffusers",
8
  "DDIMScheduler"
@@ -11,18 +19,10 @@
11
  "transformers",
12
  "CLIPTextModel"
13
  ],
14
- "text_encoder_2": [
15
- "transformers",
16
- "CLIPTextModelWithProjection"
17
- ],
18
  "tokenizer": [
19
  "transformers",
20
  "CLIPTokenizer"
21
  ],
22
- "tokenizer_2": [
23
- "transformers",
24
- "CLIPTokenizer"
25
- ],
26
  "unet": [
27
  "diffusers",
28
  "UNet2DConditionModel"
 
1
  {
2
+ "_class_name": "StableDiffusionPipeline",
3
  "_diffusers_version": "0.23.1",
4
+ "_name_or_path": "runwayml/stable-diffusion-v1-5",
5
+ "feature_extractor": [
6
+ "transformers",
7
+ "CLIPImageProcessor"
8
+ ],
9
+ "requires_safety_checker": true,
10
+ "safety_checker": [
11
+ "stable_diffusion",
12
+ "StableDiffusionSafetyChecker"
13
+ ],
14
  "scheduler": [
15
  "diffusers",
16
  "DDIMScheduler"
 
19
  "transformers",
20
  "CLIPTextModel"
21
  ],
 
 
 
 
22
  "tokenizer": [
23
  "transformers",
24
  "CLIPTokenizer"
25
  ],
 
 
 
 
26
  "unet": [
27
  "diffusers",
28
  "UNet2DConditionModel"
safety_checker/config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--runwayml--stable-diffusion-v1-5/snapshots/1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9/safety_checker",
3
+ "architectures": [
4
+ "StableDiffusionSafetyChecker"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "clip",
9
+ "projection_dim": 768,
10
+ "text_config": {
11
+ "dropout": 0.0,
12
+ "hidden_size": 768,
13
+ "intermediate_size": 3072,
14
+ "model_type": "clip_text_model",
15
+ "num_attention_heads": 12
16
+ },
17
+ "torch_dtype": "float16",
18
+ "transformers_version": "4.34.0",
19
+ "vision_config": {
20
+ "dropout": 0.0,
21
+ "hidden_size": 1024,
22
+ "intermediate_size": 4096,
23
+ "model_type": "clip_vision_model",
24
+ "num_attention_heads": 16,
25
+ "num_hidden_layers": 24,
26
+ "patch_size": 14
27
+ }
28
+ }
safety_checker/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6
3
+ size 608016280
scheduler/scheduler_config.json CHANGED
@@ -7,7 +7,6 @@
7
  "clip_sample": false,
8
  "clip_sample_range": 1.0,
9
  "dynamic_thresholding_ratio": 0.995,
10
- "interpolation_type": "linear",
11
  "num_train_timesteps": 1000,
12
  "prediction_type": "epsilon",
13
  "rescale_betas_zero_snr": false,
@@ -17,6 +16,5 @@
17
  "steps_offset": 1,
18
  "thresholding": false,
19
  "timestep_spacing": "trailing",
20
- "trained_betas": null,
21
- "use_karras_sigmas": false
22
  }
 
7
  "clip_sample": false,
8
  "clip_sample_range": 1.0,
9
  "dynamic_thresholding_ratio": 0.995,
 
10
  "num_train_timesteps": 1000,
11
  "prediction_type": "epsilon",
12
  "rescale_betas_zero_snr": false,
 
16
  "steps_offset": 1,
17
  "thresholding": false,
18
  "timestep_spacing": "trailing",
19
+ "trained_betas": null
 
20
  }
text_encoder/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/462165984030d82259a11f4367a4eed129e94a7b/text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--runwayml--stable-diffusion-v1-5/snapshots/1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9/text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
unet/config.json CHANGED
@@ -1,20 +1,17 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.23.1",
4
- "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/462165984030d82259a11f4367a4eed129e94a7b/unet",
5
  "act_fn": "silu",
6
- "addition_embed_type": "text_time",
7
  "addition_embed_type_num_heads": 64,
8
- "addition_time_embed_dim": 256,
9
- "attention_head_dim": [
10
- 5,
11
- 10,
12
- 20
13
- ],
14
  "attention_type": "default",
15
  "block_out_channels": [
16
  320,
17
  640,
 
18
  1280
19
  ],
20
  "center_input_sample": false,
@@ -22,12 +19,13 @@
22
  "class_embeddings_concat": false,
23
  "conv_in_kernel": 3,
24
  "conv_out_kernel": 3,
25
- "cross_attention_dim": 2048,
26
  "cross_attention_norm": null,
27
  "down_block_types": [
28
- "DownBlock2D",
29
  "CrossAttnDownBlock2D",
30
- "CrossAttnDownBlock2D"
 
 
31
  ],
32
  "downsample_padding": 1,
33
  "dropout": 0.0,
@@ -47,27 +45,24 @@
47
  "num_class_embeds": null,
48
  "only_cross_attention": false,
49
  "out_channels": 4,
50
- "projection_class_embeddings_input_dim": 2816,
51
  "resnet_out_scale_factor": 1.0,
52
  "resnet_skip_time_act": false,
53
  "resnet_time_scale_shift": "default",
54
  "reverse_transformer_layers_per_block": null,
55
- "sample_size": 128,
56
  "time_cond_proj_dim": null,
57
  "time_embedding_act_fn": null,
58
  "time_embedding_dim": null,
59
  "time_embedding_type": "positional",
60
  "timestep_post_act": null,
61
- "transformer_layers_per_block": [
62
- 1,
63
- 2,
64
- 10
65
- ],
66
  "up_block_types": [
 
67
  "CrossAttnUpBlock2D",
68
  "CrossAttnUpBlock2D",
69
- "UpBlock2D"
70
  ],
71
- "upcast_attention": null,
72
- "use_linear_projection": true
73
  }
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.23.1",
4
+ "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--runwayml--stable-diffusion-v1-5/snapshots/1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9/unet",
5
  "act_fn": "silu",
6
+ "addition_embed_type": null,
7
  "addition_embed_type_num_heads": 64,
8
+ "addition_time_embed_dim": null,
9
+ "attention_head_dim": 8,
 
 
 
 
10
  "attention_type": "default",
11
  "block_out_channels": [
12
  320,
13
  640,
14
+ 1280,
15
  1280
16
  ],
17
  "center_input_sample": false,
 
19
  "class_embeddings_concat": false,
20
  "conv_in_kernel": 3,
21
  "conv_out_kernel": 3,
22
+ "cross_attention_dim": 768,
23
  "cross_attention_norm": null,
24
  "down_block_types": [
 
25
  "CrossAttnDownBlock2D",
26
+ "CrossAttnDownBlock2D",
27
+ "CrossAttnDownBlock2D",
28
+ "DownBlock2D"
29
  ],
30
  "downsample_padding": 1,
31
  "dropout": 0.0,
 
45
  "num_class_embeds": null,
46
  "only_cross_attention": false,
47
  "out_channels": 4,
48
+ "projection_class_embeddings_input_dim": null,
49
  "resnet_out_scale_factor": 1.0,
50
  "resnet_skip_time_act": false,
51
  "resnet_time_scale_shift": "default",
52
  "reverse_transformer_layers_per_block": null,
53
+ "sample_size": 64,
54
  "time_cond_proj_dim": null,
55
  "time_embedding_act_fn": null,
56
  "time_embedding_dim": null,
57
  "time_embedding_type": "positional",
58
  "timestep_post_act": null,
59
+ "transformer_layers_per_block": 1,
 
 
 
 
60
  "up_block_types": [
61
+ "UpBlock2D",
62
  "CrossAttnUpBlock2D",
63
  "CrossAttnUpBlock2D",
64
+ "CrossAttnUpBlock2D"
65
  ],
66
+ "upcast_attention": false,
67
+ "use_linear_projection": false
68
  }
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:26b5da455e0f7506464ef990d13bf28df9c0dec771c2625e07f338f7e6e6ecfa
3
- size 5922395792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b074fc94f4047d5c24fc405c4593b0bfcb6b707c5177975158a7ee7a8e806f97
3
+ size 1988214992
vae/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.23.1",
4
- "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/462165984030d82259a11f4367a4eed129e94a7b/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
@@ -21,8 +21,8 @@
21
  "layers_per_block": 2,
22
  "norm_num_groups": 32,
23
  "out_channels": 3,
24
- "sample_size": 1024,
25
- "scaling_factor": 0.13025,
26
  "up_block_types": [
27
  "UpDecoderBlock2D",
28
  "UpDecoderBlock2D",
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.23.1",
4
+ "_name_or_path": "/home/grads/azhang42/hf_cache/hub/models--runwayml--stable-diffusion-v1-5/snapshots/1d0c4ebf6ff58a5caecab40fa1406526bca4b5b9/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
 
21
  "layers_per_block": 2,
22
  "norm_num_groups": 32,
23
  "out_channels": 3,
24
+ "sample_size": 512,
25
+ "scaling_factor": 0.18215,
26
  "up_block_types": [
27
  "UpDecoderBlock2D",
28
  "UpDecoderBlock2D",
vae/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bcb60880a46b63dea58e9bc591abe15f8350bde47b405f9c38f4be70c6161e68
3
  size 167335342
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c
3
  size 167335342