Esempio n. 1
0
def main():

    if not (os.path.exists(train_set_file) & os.path.exists(validation_set_file)):
        GetLSPData.main()

    if not gfile.Exists(FLAGS.train_dir):
        gfile.MakeDirs(FLAGS.train_dir)
    
    train()
Esempio n. 2
0
def main():
    trainLabelsFileName = os.path.join(FLAGS.data_dir, FLAGS.trainLabels_fn)
    testLabelsFileName = os.path.join(FLAGS.data_dir, FLAGS.testLabels_fn)
    if not (os.path.exists(trainLabelsFileName) & os.path.exists(testLabelsFileName)):
        GetLSPData.main()
    if gfile.Exists(FLAGS.eval_dir):
        gfile.DeleteRecursively(FLAGS.eval_dir)
    gfile.MakeDirs(FLAGS.eval_dir)
    
    eval(testLabelsFileName)
Esempio n. 3
0
def main():
    trainSetFileNames = os.path.join(FLAGS.data_dir, FLAGS.trainLabels_fn)
    testSetFileNames = os.path.join(FLAGS.data_dir, FLAGS.testLabels_fn)
    
    if not (os.path.exists(trainSetFileNames) & os.path.exists(testSetFileNames)):
        GetLSPData.main()
        
    #if gfile.Exists(FLAGS.train_dir):
        #gfile.DeleteRecursively(FLAGS.train_dir)
    if not gfile.Exists(FLAGS.train_dir):
        gfile.MakeDirs(FLAGS.train_dir)
    
    train(trainSetFileNames, testSetFileNames)