ehristoforu
commited on
Commit
•
3071c03
1
Parent(s):
548c81c
Update unet/config.json
Browse files- unet/config.json +12 -30
unet/config.json
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"act_fn": "silu",
|
5 |
-
"
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
9 |
"block_out_channels": [
|
10 |
320,
|
11 |
640,
|
@@ -13,12 +15,7 @@
|
|
13 |
1280
|
14 |
],
|
15 |
"center_input_sample": false,
|
16 |
-
"
|
17 |
-
"class_embeddings_concat": false,
|
18 |
-
"conv_in_kernel": 3,
|
19 |
-
"conv_out_kernel": 3,
|
20 |
-
"cross_attention_dim": 768,
|
21 |
-
"cross_attention_norm": null,
|
22 |
"down_block_types": [
|
23 |
"CrossAttnDownBlock2D",
|
24 |
"CrossAttnDownBlock2D",
|
@@ -27,38 +24,23 @@
|
|
27 |
],
|
28 |
"downsample_padding": 1,
|
29 |
"dual_cross_attention": false,
|
30 |
-
"encoder_hid_dim": null,
|
31 |
-
"encoder_hid_dim_type": null,
|
32 |
"flip_sin_to_cos": true,
|
33 |
"freq_shift": 0,
|
34 |
"in_channels": 4,
|
35 |
"layers_per_block": 2,
|
36 |
-
"mid_block_only_cross_attention": null,
|
37 |
"mid_block_scale_factor": 1,
|
38 |
-
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
39 |
"norm_eps": 1e-05,
|
40 |
"norm_num_groups": 32,
|
41 |
-
"num_attention_heads": null,
|
42 |
"num_class_embeds": null,
|
43 |
"only_cross_attention": false,
|
44 |
"out_channels": 4,
|
45 |
-
"
|
46 |
-
"resnet_out_scale_factor": 1.0,
|
47 |
-
"resnet_skip_time_act": false,
|
48 |
-
"resnet_time_scale_shift": "default",
|
49 |
-
"sample_size": 64,
|
50 |
-
"time_cond_proj_dim": null,
|
51 |
-
"time_embedding_act_fn": null,
|
52 |
-
"time_embedding_dim": null,
|
53 |
-
"time_embedding_type": "positional",
|
54 |
-
"timestep_post_act": null,
|
55 |
-
"transformer_layers_per_block": 1,
|
56 |
"up_block_types": [
|
57 |
"UpBlock2D",
|
58 |
"CrossAttnUpBlock2D",
|
59 |
"CrossAttnUpBlock2D",
|
60 |
"CrossAttnUpBlock2D"
|
61 |
],
|
62 |
-
"
|
63 |
-
"
|
64 |
-
}
|
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.10.0.dev0",
|
4 |
"act_fn": "silu",
|
5 |
+
"attention_head_dim": [
|
6 |
+
5,
|
7 |
+
10,
|
8 |
+
20,
|
9 |
+
20
|
10 |
+
],
|
11 |
"block_out_channels": [
|
12 |
320,
|
13 |
640,
|
|
|
15 |
1280
|
16 |
],
|
17 |
"center_input_sample": false,
|
18 |
+
"cross_attention_dim": 1024,
|
|
|
|
|
|
|
|
|
|
|
19 |
"down_block_types": [
|
20 |
"CrossAttnDownBlock2D",
|
21 |
"CrossAttnDownBlock2D",
|
|
|
24 |
],
|
25 |
"downsample_padding": 1,
|
26 |
"dual_cross_attention": false,
|
|
|
|
|
27 |
"flip_sin_to_cos": true,
|
28 |
"freq_shift": 0,
|
29 |
"in_channels": 4,
|
30 |
"layers_per_block": 2,
|
|
|
31 |
"mid_block_scale_factor": 1,
|
|
|
32 |
"norm_eps": 1e-05,
|
33 |
"norm_num_groups": 32,
|
|
|
34 |
"num_class_embeds": null,
|
35 |
"only_cross_attention": false,
|
36 |
"out_channels": 4,
|
37 |
+
"sample_size": 96,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
"up_block_types": [
|
39 |
"UpBlock2D",
|
40 |
"CrossAttnUpBlock2D",
|
41 |
"CrossAttnUpBlock2D",
|
42 |
"CrossAttnUpBlock2D"
|
43 |
],
|
44 |
+
"use_linear_projection": true,
|
45 |
+
"upcast_attention": true
|
46 |
+
}
|