-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
36 lines (26 loc) · 836 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
import string
width = 120
height = 50
label_len = 6
characters = '0123456789qwertyuiopasdfghjklzxcvbnm'
label_classes = len(characters)+1
# save checkpoint path
cp_save_path = './models/weights.{epoch:02d}-{loss:.3f}-{val_loss:.3f}.hdf5'
# the model for predicting
base_model_path = './models/weights_for_predict.hdf5'
# TensorBoard save path, Optional
tb_log_dir = './tensorboard'
load_model_path = ''
# load_model_path = './models/weights.20-0.263-0.270.hdf5' # using pre-trained model
learning_rate = 0.01
initial_epoch = 0
is_training = True
img_dir = './data/train'
description_path = './data/train.csv'
# img_dir = './data/public_test'
# description_path = './data/public_test.csv'
# img_dir = './data/private_test'
# description_path = './data/private_test.csv'
N_EPOCHS = 30
BATCH_SIZE = 64
downsample_factor = 4