-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigs.jsonnet
60 lines (54 loc) · 1.17 KB
/
configs.jsonnet
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
{
BASE: {
MODEL_ID: 'CODE_TEMPLATE',
SAME_PROB: 0,
BATCH_PER_GPU: 2,
MAX_STEP: 400000,
SAVE_ROOT: 'train_results',
PACKAGES_PATH: '../PACKAGES',
VAL_SIZE: 64,
IMG_SIZE: 512,
RUN_ID: 'test',
},
# weight of loss
LOSS: {
W_ADV: 1,
W_ID: 0,
W_VGG: 0,
W_L1: 0,
W_RECON: 0,
W_CYCLE: 0,
W_FEAT: 10,
W_LPIPS: 10,
},
CYCLE: {
LOSS: 10,
TRAIN_IMAGE: 50,
VALID_IMAGE: 50,
CKPT: 1000,
},
CKPT: {
# ckpt path
# load checkpoints from ./train_result/{ckpt_id}/ckpt/G_{ckpt_step}.pt
# if ckpt_id is empty, load G_latest.pt and D_latest.pt
TURN_ON: false,
ID_NUM: null,
STEP: null,
},
WANDB: {
TURN_ON: true,
ALERT_THRES: 1000,
},
OPTIMIZER: {
TYPE: 'Adam', # [Ranger, Adam]
BETA: [0.0, 0.999], # default: Adam (0.9, 0.999) / Ranger (0.95, 0.999)
LR_G: 0.0001,
LR_D: 0.00001,
},
DATASET: {
IMAGE:
[
'/data1/PUBLIC/ffhq70k/',
],
},
}