Upload 2 files
Browse filesupload ldsr model
- .gitattributes +1 -0
- model.ckpt +3 -0
- project.yaml +80 -0
.gitattributes
CHANGED
@@ -31,3 +31,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
31 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
32 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
33 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
31 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
32 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
33 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
34 |
+
model.ckpt filter=lfs diff=lfs merge=lfs -text
|
model.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c209caecac2f97b4bb8f4d726b70ac2ac9b35904b7fc99801e1f5e61f9210c13
|
3 |
+
size 2039822129
|
project.yaml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
model:
|
2 |
+
base_learning_rate: 1.0e-06
|
3 |
+
target: ldm.models.diffusion.ddpm.LatentDiffusion
|
4 |
+
params:
|
5 |
+
linear_start: 0.0015
|
6 |
+
linear_end: 0.0155
|
7 |
+
log_every_t: 100
|
8 |
+
timesteps: 1000
|
9 |
+
loss_type: l2
|
10 |
+
first_stage_key: image
|
11 |
+
cond_stage_key: LR_image
|
12 |
+
image_size: 64
|
13 |
+
channels: 3
|
14 |
+
concat_mode: true
|
15 |
+
cond_stage_trainable: false
|
16 |
+
unet_config:
|
17 |
+
target: ldm.modules.diffusionmodules.openaimodel.UNetModel
|
18 |
+
params:
|
19 |
+
image_size: 64
|
20 |
+
in_channels: 6
|
21 |
+
out_channels: 3
|
22 |
+
model_channels: 160
|
23 |
+
attention_resolutions:
|
24 |
+
- 16
|
25 |
+
- 8
|
26 |
+
num_res_blocks: 2
|
27 |
+
channel_mult:
|
28 |
+
- 1
|
29 |
+
- 2
|
30 |
+
- 2
|
31 |
+
- 4
|
32 |
+
num_head_channels: 32
|
33 |
+
first_stage_config:
|
34 |
+
target: ldm.models.autoencoder.VQModelInterface
|
35 |
+
params:
|
36 |
+
embed_dim: 3
|
37 |
+
n_embed: 8192
|
38 |
+
monitor: val/rec_loss
|
39 |
+
ddconfig:
|
40 |
+
double_z: false
|
41 |
+
z_channels: 3
|
42 |
+
resolution: 256
|
43 |
+
in_channels: 3
|
44 |
+
out_ch: 3
|
45 |
+
ch: 128
|
46 |
+
ch_mult:
|
47 |
+
- 1
|
48 |
+
- 2
|
49 |
+
- 4
|
50 |
+
num_res_blocks: 2
|
51 |
+
attn_resolutions: []
|
52 |
+
dropout: 0.0
|
53 |
+
lossconfig:
|
54 |
+
target: torch.nn.Module # todo
|
55 |
+
cond_stage_config:
|
56 |
+
target: torch.nn.Identity
|
57 |
+
data:
|
58 |
+
target: cutlit.DataModuleFromConfig
|
59 |
+
params:
|
60 |
+
batch_size: 64
|
61 |
+
wrap: false
|
62 |
+
num_workers: 12
|
63 |
+
train:
|
64 |
+
target: ldm.data.openimages.SuperresOpenImagesAdvancedTrain
|
65 |
+
params:
|
66 |
+
size: 256
|
67 |
+
degradation: bsrgan_light
|
68 |
+
downscale_f: 4
|
69 |
+
min_crop_f: 0.5
|
70 |
+
max_crop_f: 1.0
|
71 |
+
random_crop: true
|
72 |
+
validation:
|
73 |
+
target: ldm.data.openimages.SuperresOpenImagesAdvancedValidation
|
74 |
+
params:
|
75 |
+
size: 256
|
76 |
+
degradation: bsrgan_light
|
77 |
+
downscale_f: 4
|
78 |
+
min_crop_f: 0.5
|
79 |
+
max_crop_f: 1.0
|
80 |
+
random_crop: true
|