Flolight commited on
Commit
79b67cd
·
verified ·
1 Parent(s): 49cfdaa

Upload unet/config.json with huggingface_hub

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