-
Notifications
You must be signed in to change notification settings - Fork 294
/
train_stage1.yaml
69 lines (66 loc) · 1.63 KB
/
train_stage1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
model:
swinir:
target: diffbir.model.swinir.SwinIR
params:
img_size: 64
patch_size: 1
in_chans: 3
embed_dim: 180
depths: [6, 6, 6, 6, 6, 6, 6, 6]
num_heads: [6, 6, 6, 6, 6, 6, 6, 6]
window_size: 8
mlp_ratio: 2
sf: 8
img_range: 1.0
upsampler: "nearest+conv"
resi_connection: "1conv"
unshuffle: True
unshuffle_scale: 8
dataset:
train:
target: diffbir.dataset.codeformer.CodeformerDataset
params:
# training file list path
file_list:
file_backend_cfg:
target: diffbir.dataset.file_backend.HardDiskBackend
out_size: 512
crop_type: center
blur_kernel_size: 41
kernel_list: ['iso', 'aniso']
kernel_prob: [0.5, 0.5]
blur_sigma: [0.1, 12]
downsample_range: [1, 12]
noise_range: [0, 15]
jpeg_range: [30, 100]
val:
target: diffbir.dataset.codeformer.CodeformerDataset
params:
# validation file list path
file_list:
file_backend_cfg:
target: diffbir.dataset.file_backend.HardDiskBackend
out_size: 512
crop_type: center
blur_kernel_size: 41
kernel_list: ['iso', 'aniso']
kernel_prob: [0.5, 0.5]
blur_sigma: [0.1, 12]
downsample_range: [1, 12]
noise_range: [0, 15]
jpeg_range: [30, 100]
batch_transform:
target: diffbir.dataset.batch_transform.IdentityBatchTransform
train:
# experiment directory path
exp_dir:
learning_rate: 1e-4
# total batch size
batch_size: 96
num_workers:
train_steps: 150000
log_every: 50
ckpt_every: 10000
image_every: 1000
val_every: 1000
resume: ~