-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
122 lines (118 loc) · 2.52 KB
/
config.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
trainer:
callbacks:
- class_path: stylegan.custom_callbacks.UpdateBatchSizeDataLoader
init_args:
batch_sizes:
- 512
- 512
- 256
- 128
- 64
- 64
- 32
- 32
- class_path: stylegan.custom_callbacks.UpdateMixingDepth
init_args:
epochs_for_each_depth:
- 2
- 4
- 16
- 32
- 64
- 64
- 64
- 80
fade_for_each_depth:
- 50
- 50
- 50
- 50
- 50
- 50
- 50
- 50
gpus: 1
gradient_clip_val: 1
gradient_clip_algorithm: norm
max_epochs: 326
limit_train_batches: 0.1
log_every_n_steps: 10
reload_dataloaders_every_n_epochs: 1
logger:
class_path: pytorch_lightning.loggers.CometLogger
init_args:
api_key: F8z2rvZxchPyTT2l1IawCAE7G
project_name: gans-specialization
save_dir: artifacts/
model:
generator:
class_path: stylegan.models.Generator
init_args:
resolution: 512
conditional: False
num_classes: 0
z_latent_dim: 512
w_latent_dim: 512
hidden_dim: 512
num_hidden_layers: 8
learning_rate_multiplier: 0.01
activation_func: "lrelu"
use_wscale: True
normalize_latents: True
num_channels: 3
structure: "linear"
blur_filter:
- 1
- 2
- 1
truncation_psi: 0.7
truncation_cutoff: 9.5
w_latent_avg_beta: 0.995
style_mixing_prob: 0.9
discriminator:
class_path: stylegan.models.Discriminator
init_args:
resolution: 512
structure: "linear"
num_channels: 3
conditional: False
num_classes: 0
non_linearity: "lrelu"
use_wscale: True
blur_filter:
- 1
- 2
- 1
minibatch_std_group_size: 4
minibatch_std_num_features: 1
ignore_labels: False
num_debug_samples: 25
loss: logistic
drift: 0.001
disc_repeats: 1
use_ema: True
ema_decay: 0.999
gen_optimizer:
class_path: torch.optim.Adam
init_args:
lr: 0.003
betas:
- 0
- 0.99
eps: 1e-8
disc_optimizer:
class_path: torch.optim.Adam
init_args:
lr: 0.003
betas:
- 0
- 0.99
eps: 1e-8
data:
#data_dir: /raid/home/labuserterbouche/data/videos/LOL_WR/big/
data_dir: /raid/home/labuserterbouche/workspace/StyleGAN-pytorch-lightining/artifacts/animeface-character-dataset/thumb/
image_size:
- 512
- 512
batch_size: 512
num_workers: 8