from pylab import * import numpy numpy.random.seed(42) # This seed is meaningful. :). import GPULock GPULock.GetGPULock() import cudamat_ext as cm cm.cublas_init() cm.CUDAMatrix.init_random(42) import cudamat as cm2 cm2.CUDAMatrix.init_random(42) import logging from mercurial import ui, hg, localrepo import nnet_train, sys, os import htkdb_cm, shutil import argparse, time from model_averaging import * parser = argparse.ArgumentParser() parser.add_argument('--skip_repo', dest='skip_repo', action='store_true', default=False, help='Do not check repository state') parser.add_argument('--wsj', action='store_true', default=False, help='Are we decoding wsj') group = parser.add_mutually_exclusive_group() group.add_argument('--use_delta', action='store_true', help="Use deltas and accelerations in training") group.add_argument('--no_delta', action='store_true', help="Dont use deltas and accelerations in training") parser.add_argument('--num_frames_per_pt', type=int, default=15, help='Number of frames per point')
import numpy, shutil from numpy import zeros, argsort, arange, log, exp, concatenate, sqrt, dot, tile import nnet_train_multi_soft from mercurial import ui, hg, localrepo import sys, os import GPULock, util, HTK, htkdb_cm id = GPULock.GetGPULock() import cudamat_ext as cm numpy.random.seed(42) # This seed is meaningful. :). cm.cublas_init() cm.CUDAMatrix.init_random(42) import logging, StripedFuncs import argparse, time from google.protobuf.text_format import Merge import run_params_pb2 parser = argparse.ArgumentParser() parser.add_argument('--skip_repo', dest='skip_repo', action='store_true', default=False, help='Do not check repository state') parser.add_argument('--probabilities', dest='probabilities', action='store_true', default=False, help='Output probabilities rather than activations') parser.add_argument('db_name', help='Path to database') parser.add_argument('output_path', help='Path to raw file') parser.add_argument('in_db_path', help='Path to database')