sanchit-gandhi
commited on
Commit
·
25f7011
1
Parent(s):
41913dd
Correct UNet model
Browse files- model_index.json +1 -1
- unet/config.json +11 -3
- unet/diffusion_pytorch_model.bin +1 -1
model_index.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
],
|
| 16 |
"unet": [
|
| 17 |
"diffusers",
|
| 18 |
-
"
|
| 19 |
],
|
| 20 |
"vae": [
|
| 21 |
"diffusers",
|
|
|
|
| 15 |
],
|
| 16 |
"unet": [
|
| 17 |
"diffusers",
|
| 18 |
+
"UNet2DConditionModel"
|
| 19 |
],
|
| 20 |
"vae": [
|
| 21 |
"diffusers",
|
unet/config.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
"_diffusers_version": "0.13.0.dev0",
|
| 4 |
"act_fn": "silu",
|
| 5 |
-
"add_attention": true,
|
| 6 |
"attention_head_dim": 8,
|
| 7 |
"block_out_channels": [
|
| 8 |
128,
|
|
@@ -12,6 +11,8 @@
|
|
| 12 |
],
|
| 13 |
"center_input_sample": false,
|
| 14 |
"class_embed_type": null,
|
|
|
|
|
|
|
| 15 |
"cross_attention_dim": true,
|
| 16 |
"down_block_types": [
|
| 17 |
"DownBlock2D",
|
|
@@ -20,6 +21,7 @@
|
|
| 20 |
"CrossAttnDownBlock2D"
|
| 21 |
],
|
| 22 |
"downsample_padding": 1,
|
|
|
|
| 23 |
"extra_film_condition_dim": 512,
|
| 24 |
"extra_film_use_concat": true,
|
| 25 |
"flip_sin_to_cos": true,
|
|
@@ -27,17 +29,23 @@
|
|
| 27 |
"in_channels": 8,
|
| 28 |
"layers_per_block": 2,
|
| 29 |
"mid_block_scale_factor": 1,
|
|
|
|
| 30 |
"norm_eps": 1e-05,
|
| 31 |
"norm_num_groups": 32,
|
| 32 |
"num_class_embeds": null,
|
|
|
|
| 33 |
"out_channels": 8,
|
| 34 |
"resnet_time_scale_shift": "default",
|
| 35 |
"sample_size": 128,
|
|
|
|
| 36 |
"time_embedding_type": "positional",
|
|
|
|
| 37 |
"up_block_types": [
|
| 38 |
"CrossAttnUpBlock2D",
|
| 39 |
"CrossAttnUpBlock2D",
|
| 40 |
"CrossAttnUpBlock2D",
|
| 41 |
"UpBlock2D"
|
| 42 |
-
]
|
|
|
|
|
|
|
| 43 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "UNet2DConditionModel",
|
| 3 |
"_diffusers_version": "0.13.0.dev0",
|
| 4 |
"act_fn": "silu",
|
|
|
|
| 5 |
"attention_head_dim": 8,
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
|
|
| 11 |
],
|
| 12 |
"center_input_sample": false,
|
| 13 |
"class_embed_type": null,
|
| 14 |
+
"conv_in_kernel": 3,
|
| 15 |
+
"conv_out_kernel": 3,
|
| 16 |
"cross_attention_dim": true,
|
| 17 |
"down_block_types": [
|
| 18 |
"DownBlock2D",
|
|
|
|
| 21 |
"CrossAttnDownBlock2D"
|
| 22 |
],
|
| 23 |
"downsample_padding": 1,
|
| 24 |
+
"dual_cross_attention": false,
|
| 25 |
"extra_film_condition_dim": 512,
|
| 26 |
"extra_film_use_concat": true,
|
| 27 |
"flip_sin_to_cos": true,
|
|
|
|
| 29 |
"in_channels": 8,
|
| 30 |
"layers_per_block": 2,
|
| 31 |
"mid_block_scale_factor": 1,
|
| 32 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
| 33 |
"norm_eps": 1e-05,
|
| 34 |
"norm_num_groups": 32,
|
| 35 |
"num_class_embeds": null,
|
| 36 |
+
"only_cross_attention": false,
|
| 37 |
"out_channels": 8,
|
| 38 |
"resnet_time_scale_shift": "default",
|
| 39 |
"sample_size": 128,
|
| 40 |
+
"time_cond_proj_dim": null,
|
| 41 |
"time_embedding_type": "positional",
|
| 42 |
+
"timestep_post_act": null,
|
| 43 |
"up_block_types": [
|
| 44 |
"CrossAttnUpBlock2D",
|
| 45 |
"CrossAttnUpBlock2D",
|
| 46 |
"CrossAttnUpBlock2D",
|
| 47 |
"UpBlock2D"
|
| 48 |
+
],
|
| 49 |
+
"upcast_attention": false,
|
| 50 |
+
"use_linear_projection": false
|
| 51 |
}
|
unet/diffusion_pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 740429981
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bf3ccd62553e214c86a63d7808d21923f17a0c8411e97d8cdfbbb8bc44814d1
|
| 3 |
size 740429981
|