forked from HyeongseokSon1/KPAC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
30 lines (24 loc) · 1.14 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
from easydict import EasyDict as edict
import json
config = edict()
config.TRAIN = edict()
## Adam
config.TRAIN.batch_size = 8
config.TRAIN.lr_init = 1e-4
config.TRAIN.beta1 = 0.9
## train set location
config.TRAIN.folder_path = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/train_dual_cropped7/' # need to change
config.VALID = edict()
config.VALID.folder_path = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/test_dual_cropped/' # need to change
## test set location
config.TEST = edict()
config.TEST.folder_path = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/test_c/' # need to change
# for dual
config.TEST.folder_path_c = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/test_c/' # need to change
config.TEST.folder_path_l = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/test_l/' # need to change
config.TEST.folder_path_r = '/home/sonhs/data2/DeblurDataset/DefocusDeblur/test_r/' # need to change
def log_config(filename, cfg):
with open(filename, 'w') as f:
f.write("================================================\n")
f.write(json.dumps(cfg, indent=4))
f.write("\n================================================\n")