-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
43 lines (36 loc) · 1004 Bytes
/
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
IMAGES= '/dccstor/aurmmaret1/sajini-code/Kaggle-Data/SRGAN/Training_set/*'
OUTPUT_DIR = '/dccstor/aurmmaret1/sajini-code/Kaggle-Data/SRGAN/Results/srgan/images/'
LOGS_DIR = '/dccstor/aurmmaret1/sajini-code/Kaggle-Data/SRGAN/Results/srgan/logs/'
CHECKPOINT = '/dccstor/aurmmaret1/sajini-code/Kaggle-Data/SRGAN/Results/srgan/checkpoints/checkpoint/'
USE_CHECKPOINT = True
#NUM_TRAIN_EPOCHS = 150
NUM_TRAIN_EPOCHS = 100
TRAIN_RATIO = .9
VAL_RATIO = .1
PRETRAIN_ONLY = False
LEARNING_RATE = 1e-4
#LEARNING_RATE = 1e-5
AD_LOSS_WEIGHT = 10.
#AD_LOSS_WEIGHT = 0.001
BN_EPSILON = 0.001
MOVING_AVERAGE_DECAY = 0.9997
BN_DECAY = MOVING_AVERAGE_DECAY
BETA_1 = 0.9
RANDOM_SEED = 1337
HR_HEIGHT = 96
HR_WIDTH = 96
r = 16 #2
LR_HEIGHT = HR_HEIGHT // r
LR_WIDTH = HR_WIDTH // r
NUM_CHANNELS = 3
BATCH_SIZE = 32 #4
#NUM_PRETRAIN_EPOCHS = 200
NUM_PRETRAIN_EPOCHS = 50
MAX_FILES = None
SAVE_TRUTH = False
PREDICT_ONLY = False
PREDICT_2X = False
#PREDICT_2X = True
PREDICT_4X = False
WEIGHTS = None
MEM_FRAC = 0.9