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()
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)
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)