-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatchgencn_single.yaml
88 lines (82 loc) · 1.41 KB
/
patchgencn_single.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
total_iters: 4000
output_dir: output_dir
trainer: SingleImageTrainer
dataset:
train:
name: SingleImageDataset
dataroot: data/mountains.jpg
preprocess:
- name: ScaledResize
mode: lanczos
num_scales: 8
min_size: 25
max_size: 250
transforms:
- name: Normalize
mean: [127.5]
std: [127.5]
keys: [image]
model:
name: PatchGenCN
nets:
- name: PatchEBM
nefs:
- 64
- 32
- 32
- 32
input_nc: 3
output_nc: 1
init_gain: 0.005
mcmc:
name: Langevin
num_steps: 60
step_size: 0.01
noise_init: 0.1
num_steps_rec: 30
- name: PatchEBM
nefs:
- 64
- 32
- 32
- 32
input_nc: 3
output_nc: 1
init_gain: 0.005
mcmc:
name: Langevin
num_steps: 30
step_size: 0.01
noise_init: 0.1
- name: PatchEBM
nefs:
- 128
- 64
- 64
- 64
input_nc: 3
output_nc: 1
init_gain: 0.005
mcmc:
name: Langevin
num_steps: 30
step_size: 0.01
noise_init: 0.1
params:
lambda_rec: 0.1
optimizer:
optimEBM:
name: Adam
beta1: 0.5
learning_rate: 0.0004
lr_scheduler:
name: LinearDecay
start_epoch: 1
decay_epochs: 3200
lr_min: 0.00005
log_config:
interval: 100
visiual_interval: 500
samples_every_row: 10
snapshot_config:
interval: 5