Add the upscaling UNet
Browse files
model_index.json
CHANGED
@@ -9,12 +9,20 @@
|
|
9 |
"diffusers",
|
10 |
"CLIPTextModel"
|
11 |
],
|
|
|
|
|
|
|
|
|
12 |
"tokenizer": [
|
13 |
"transformers",
|
14 |
"GPT2Tokenizer"
|
15 |
],
|
16 |
-
"
|
|
|
|
|
|
|
|
|
17 |
"diffusers",
|
18 |
-
"
|
19 |
]
|
20 |
}
|
|
|
9 |
"diffusers",
|
10 |
"CLIPTextModel"
|
11 |
],
|
12 |
+
"text_unet": [
|
13 |
+
"diffusers",
|
14 |
+
"GLIDETextToImageUNetModel"
|
15 |
+
],
|
16 |
"tokenizer": [
|
17 |
"transformers",
|
18 |
"GPT2Tokenizer"
|
19 |
],
|
20 |
+
"upscale_noise_scheduler": [
|
21 |
+
"diffusers",
|
22 |
+
"GlideDDIMScheduler"
|
23 |
+
],
|
24 |
+
"upscale_unet": [
|
25 |
"diffusers",
|
26 |
+
"GLIDESuperResUNetModel"
|
27 |
]
|
28 |
}
|
{unet → text_unet}/config.json
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
"attention_resolutions": [
|
4 |
2,
|
5 |
4,
|
@@ -22,7 +22,6 @@
|
|
22 |
"num_res_blocks": 3,
|
23 |
"out_channels": 6,
|
24 |
"resblock_updown": true,
|
25 |
-
"transformer_dim": 512,
|
26 |
"use_checkpoint": false,
|
27 |
"use_fp16": false,
|
28 |
"use_scale_shift_norm": true
|
|
|
1 |
{
|
2 |
+
"_class_name": "GLIDETextToImageUNetModel",
|
3 |
"attention_resolutions": [
|
4 |
2,
|
5 |
4,
|
|
|
22 |
"num_res_blocks": 3,
|
23 |
"out_channels": 6,
|
24 |
"resblock_updown": true,
|
|
|
25 |
"use_checkpoint": false,
|
26 |
"use_fp16": false,
|
27 |
"use_scale_shift_norm": true
|
{unet → text_unet}/diffusion_model.pt
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1235135533
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2c5b7116a5a45e0c67113e53c7d1204ed7e54dd301894c130d7d5820c184c34
|
3 |
size 1235135533
|
upscale_noise_scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "GlideDDIMScheduler",
|
3 |
+
"beta_schedule": "linear",
|
4 |
+
"timesteps": 1000
|
5 |
+
}
|
upscale_unet/config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "GLIDESuperResUNetModel",
|
3 |
+
"attention_resolutions": [
|
4 |
+
8,
|
5 |
+
16,
|
6 |
+
32
|
7 |
+
],
|
8 |
+
"channel_mult": [
|
9 |
+
1,
|
10 |
+
1,
|
11 |
+
2,
|
12 |
+
2,
|
13 |
+
4,
|
14 |
+
4
|
15 |
+
],
|
16 |
+
"conv_resample": true,
|
17 |
+
"dims": 2,
|
18 |
+
"dropout": 0.1,
|
19 |
+
"in_channels": 6,
|
20 |
+
"model_channels": 192,
|
21 |
+
"num_head_channels": 64,
|
22 |
+
"num_heads": 1,
|
23 |
+
"num_heads_upsample": 1,
|
24 |
+
"num_res_blocks": 2,
|
25 |
+
"out_channels": 6,
|
26 |
+
"resblock_updown": true,
|
27 |
+
"use_checkpoint": false,
|
28 |
+
"use_fp16": false,
|
29 |
+
"use_scale_shift_norm": true
|
30 |
+
}
|
upscale_unet/diffusion_model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2a378df148fc34f0a30228cfb9f3c4457819d2e4293bdd3841ca65a9eea79c4
|
3 |
+
size 1244328341
|