-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
52 lines (43 loc) · 1.08 KB
/
config.py
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
# -*- coding:utf-8 -*-
#
# Created by Drogo Zhang
#
# On 2019-06-01
isTrain = True
gpu_ids = '0'
continue_train = False
which_epoch = -1 # if continue Train ture, set this value
print_net_in_detail = False
lr_decay_iters = 500
dataDir = './DIV2K'
saveDir = './result'
checkpoints_dir = './checkpoints_dir'
LR_rate = '4X' # '2X' # tuning here!
load = 'RDN_' + LR_rate
model_name = 'RDN'
need_patch = True
downsample_method = 'conv' # 'pooling'
nDenselayer = 3 # 6
growthRate = 32
nBlock = 16
nFeat = 64
input_channel = 3
patchSize = 144
nThreads = 4
batchSize = 16
lr = 1e-4
beta = 0.5
epochs = 10000
lrDecay = 2000
decayType = 'step'
lossType = 'L1' # 'MSE'
scale = int(LR_rate[0]) # 1
pool_size = 50
lambda_A = 10
lambda_B = 10
lambda_identity = 0.5
which_direction = 'AtoB'
print_freq = batchSize * 5
save_epoch_freq = 5
# --model_name RDN --load demo_x3_RDN --dataDir .// --need_patch --patchSize --nDenselayer --nFeat 64 --growthRate 32
# --scale 3 --epoch 10000 --lrDecay 2000 --lr 1e-4 --batchSize 16 --nThreads 4 --lossType L1