Commit
•
6344c7b
1
Parent(s):
6bb6a4d
Upload unet/config.json with huggingface_hub
Browse files- unet/config.json +121 -0
unet/config.json
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_commit_hash": null,
|
4 |
+
"_diffusers_version": "0.20.2",
|
5 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--stabilityai--stable-diffusion-2-1-base/snapshots/5ede9e4bf3e3fd1cb0ef2f7a3fff13ee514fdf06/unet",
|
6 |
+
"_use_default_values": [
|
7 |
+
"time_embedding_type",
|
8 |
+
"attention_type",
|
9 |
+
"class_embed_type",
|
10 |
+
"resnet_skip_time_act",
|
11 |
+
"transformer_layers_per_block",
|
12 |
+
"num_attention_heads",
|
13 |
+
"cross_attention_norm",
|
14 |
+
"mid_block_type",
|
15 |
+
"time_cond_proj_dim",
|
16 |
+
"time_embedding_dim",
|
17 |
+
"upcast_attention",
|
18 |
+
"conv_in_kernel",
|
19 |
+
"time_embedding_act_fn",
|
20 |
+
"conv_out_kernel",
|
21 |
+
"mid_block_only_cross_attention",
|
22 |
+
"projection_class_embeddings_input_dim",
|
23 |
+
"timestep_post_act",
|
24 |
+
"addition_time_embed_dim",
|
25 |
+
"addition_embed_type",
|
26 |
+
"addition_embed_type_num_heads",
|
27 |
+
"class_embeddings_concat",
|
28 |
+
"resnet_out_scale_factor",
|
29 |
+
"encoder_hid_dim",
|
30 |
+
"encoder_hid_dim_type",
|
31 |
+
"resnet_time_scale_shift"
|
32 |
+
],
|
33 |
+
"act_fn": "silu",
|
34 |
+
"addition_embed_type": null,
|
35 |
+
"addition_embed_type_num_heads": 64,
|
36 |
+
"addition_time_embed_dim": null,
|
37 |
+
"attention_head_dim": [
|
38 |
+
5,
|
39 |
+
10,
|
40 |
+
20,
|
41 |
+
20
|
42 |
+
],
|
43 |
+
"attention_type": "default",
|
44 |
+
"block_out_channels": [
|
45 |
+
320,
|
46 |
+
640,
|
47 |
+
1280,
|
48 |
+
1280
|
49 |
+
],
|
50 |
+
"center_input_sample": false,
|
51 |
+
"class_embed_type": null,
|
52 |
+
"class_embeddings_concat": false,
|
53 |
+
"conv_in_kernel": 3,
|
54 |
+
"conv_out_kernel": 3,
|
55 |
+
"cross_attention_dim": 1024,
|
56 |
+
"cross_attention_norm": null,
|
57 |
+
"down_block_types": [
|
58 |
+
"CrossAttnDownBlock2D",
|
59 |
+
"CrossAttnDownBlock2D",
|
60 |
+
"CrossAttnDownBlock2D",
|
61 |
+
"DownBlock2D"
|
62 |
+
],
|
63 |
+
"downsample_padding": 1,
|
64 |
+
"dual_cross_attention": false,
|
65 |
+
"encoder_hid_dim": null,
|
66 |
+
"encoder_hid_dim_type": null,
|
67 |
+
"flip_sin_to_cos": true,
|
68 |
+
"freq_shift": 0,
|
69 |
+
"in_channels": 4,
|
70 |
+
"layers_per_block": 2,
|
71 |
+
"mid_block_only_cross_attention": null,
|
72 |
+
"mid_block_scale_factor": 1,
|
73 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
74 |
+
"model_type": "unet",
|
75 |
+
"neuron": {
|
76 |
+
"auto_cast": "matmul",
|
77 |
+
"auto_cast_type": "bf16",
|
78 |
+
"compiler_type": "neuronx-cc",
|
79 |
+
"compiler_version": "2.9.0.40+07376825f",
|
80 |
+
"dynamic_batch_size": false,
|
81 |
+
"input_names": [
|
82 |
+
"sample",
|
83 |
+
"timestep",
|
84 |
+
"encoder_hidden_states"
|
85 |
+
],
|
86 |
+
"output_names": [
|
87 |
+
"sample"
|
88 |
+
],
|
89 |
+
"static_batch_size": 1,
|
90 |
+
"static_height": 64,
|
91 |
+
"static_num_channels": 4,
|
92 |
+
"static_sequence_length": 77,
|
93 |
+
"static_width": 64
|
94 |
+
},
|
95 |
+
"norm_eps": 1e-05,
|
96 |
+
"norm_num_groups": 32,
|
97 |
+
"num_attention_heads": null,
|
98 |
+
"num_class_embeds": null,
|
99 |
+
"only_cross_attention": false,
|
100 |
+
"out_channels": 4,
|
101 |
+
"projection_class_embeddings_input_dim": null,
|
102 |
+
"resnet_out_scale_factor": 1.0,
|
103 |
+
"resnet_skip_time_act": false,
|
104 |
+
"resnet_time_scale_shift": "default",
|
105 |
+
"sample_size": 64,
|
106 |
+
"time_cond_proj_dim": null,
|
107 |
+
"time_embedding_act_fn": null,
|
108 |
+
"time_embedding_dim": null,
|
109 |
+
"time_embedding_type": "positional",
|
110 |
+
"timestep_post_act": null,
|
111 |
+
"transformer_layers_per_block": 1,
|
112 |
+
"transformers_version": null,
|
113 |
+
"up_block_types": [
|
114 |
+
"UpBlock2D",
|
115 |
+
"CrossAttnUpBlock2D",
|
116 |
+
"CrossAttnUpBlock2D",
|
117 |
+
"CrossAttnUpBlock2D"
|
118 |
+
],
|
119 |
+
"upcast_attention": false,
|
120 |
+
"use_linear_projection": true
|
121 |
+
}
|