-
Notifications
You must be signed in to change notification settings - Fork 99
/
config.py
37 lines (32 loc) · 1.28 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
##################################################
# Training Config
##################################################
GPU = '0' # GPU
workers = 4 # number of Dataloader workers
epochs = 160 # number of epochs
batch_size = 12 # batch size
learning_rate = 1e-3 # initial learning rate
##################################################
# Model Config
##################################################
image_size = (448, 448) # size of training images
net = 'inception_mixed_6e' # feature extractor
num_attentions = 32 # number of attention maps
beta = 5e-2 # param for update feature centers
##################################################
# Dataset/Path Config
##################################################
tag = 'bird' # 'aircraft', 'bird', 'car', or 'dog'
# saving directory of .ckpt models
save_dir = './FGVC/CUB-200-2011/ckpt/'
model_name = 'model.ckpt'
log_name = 'train.log'
# checkpoint model for resume training
ckpt = False
# ckpt = save_dir + model_name
##################################################
# Eval Config
##################################################
visualize = True
eval_ckpt = save_dir + model_name
eval_savepath = './FGVC/CUB-200-2011/visualize/'