Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkim-kaist committed Jan 12, 2018
1 parent feec9c1 commit c8bec1c
Show file tree
Hide file tree
Showing 59 changed files with 8 additions and 5 deletions.
Binary file added data/feat/train/Labels/se_label_001.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_002.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_003.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_004.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_005.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_006.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_007.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_008.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_009.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_010.bin
Binary file not shown.
Binary file added data/feat/train/Labels/se_label_011.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/feat/train/global_normalize_factor.mat
Binary file not shown.
Binary file added data/feat/train/se_mrcg_001.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_002.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_003.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_004.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_005.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_006.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_007.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_008.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_009.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_010.bin
Binary file not shown.
Binary file added data/feat/train/se_mrcg_011.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_001.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_002.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_003.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_004.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_005.bin
Binary file not shown.
Binary file added data/feat/valid/Labels/se_label_006.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/feat/valid/global_normalize_factor.mat
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_001.bin
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_002.bin
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_003.bin
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_004.bin
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_005.bin
Binary file not shown.
Binary file added data/feat/valid/se_mrcg_006.bin
Binary file not shown.
9 changes: 6 additions & 3 deletions lib/python/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
if __name__ == '__main__':

try:
opts, args = getopt.getopt(sys.argv[1:], 'hm:e:', ["train_step=", "prj_dir="])
opts, args = getopt.getopt(sys.argv[1:], 'hm:e:', ["train_step=", "batch_size=", "prj_dir="])
except getopt.GetoptError as err:
print(str(err))
sys.exit(1)

if len(opts) != 4:
if len(opts) != 5:
print("arguments are not enough.")
sys.exit(1)

Expand All @@ -34,9 +34,12 @@
extract_feat = int(arg)
elif opt == '--train_step':
train_step = int(arg)
elif opt == '--batch_size':
batch_size = int(arg)
elif opt == '--prj_dir':
prj_dir = str(arg)


data_dir = prj_dir + '/data/raw'
print(data_dir)
train_data_dir = data_dir + '/train'
Expand Down Expand Up @@ -70,7 +73,7 @@
os.system("mkdir " + logs_dir + '/train')
os.system("mkdir " + logs_dir + '/valid')

Vd.train_config(save_dir+'/train', save_dir+'/valid', prj_dir+'/logs', 256,
Vd.train_config(save_dir+'/train', save_dir+'/valid', prj_dir+'/logs', batch_size,
train_step, 'train')

Vd.main()
Expand Down
Binary file modified norm_data/global_normalize_factor.mat
Binary file not shown.
Binary file modified saved_model/DNN.data-00000-of-00001
Binary file not shown.
Binary file modified saved_model/DNN.index
Binary file not shown.
Binary file modified saved_model/DNN.meta
Binary file not shown.
4 changes: 2 additions & 2 deletions train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ curdir=`pwd`
pylibdir=`realpath $curdir/lib/python`
train=`realpath $pylibdir/train.py`
ckpt_update=`realpath $pylibdir/update_ckpt.py`

# train script options
# m 0 : DNN
# e : extract MRCG feature (1) or not (0)

python3 $train -m 0 -e 1 --train_step=100 --prj_dir=$curdir
python3 $train -m 0 -e 1 --train_step=100 --batch_size=256 --prj_dir=$curdir

a
# ckpt_update script options
# u : update checkpoint from trained model (1) or restore checkpoint to default (0)
# Note that when u==0, the normalization factor is also restored to default.
Expand Down

0 comments on commit c8bec1c

Please sign in to comment.