def main(): print("Ara Voice trainer 1.0.0 in development") print("checking system") from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os.path import sys import numpy as np from six.moves import xrange import tensorflow as tf import train import freeze import input_data import models from tensorflow.python.platform import gfile print("Stating...") train.main() print("Exporting to .tflite") freeze.main() print("done")
def main(): """ this one simply runs the freezing for all templates this is the one you should always use """ with freeze.maybe_transient_venv_dir(None, False) as venv: for template, out in RUNS: args = argparse.Namespace(venv=venv, keep=True, template=str(HERE.joinpath(template)), out=str(HERE.joinpath(out))) freeze.main(args)
def main(): """ this one simply runs the freezing for all templates this is the one you should always use """ with freeze.maybe_transient_venv_dir(None, False) as venv: for template, out in RUNS: args = argparse.Namespace( venv=venv, keep=True, template=str(HERE.joinpath(template)), out=str(HERE.joinpath(out)) ) freeze.main(args)
def main(): """ this one simply runs the freezing for all templates this is the one you should always use """ with freeze.maybe_transient_venv_dir(None, False) as venv: for template, out in RUNS: out = out.replace( '.txt', '.py{major}.txt'.format(major=sys.version_info[0])) args = argparse.Namespace(venv=venv, keep=True, template=str(HERE.joinpath(template)), out=str(HERE.joinpath(out))) freeze.main(args)
def main(conf): """ this one simply runs the freezing for all templates this is the one you should always use """ with freeze.maybe_transient_venv_dir(None, False) as venv: for template, out in RUNS: out = out.replace(".txt", ".py{major}.txt".format(major=sys.version_info[0])) args = argparse.Namespace( venv=venv, keep=True, template=str(HERE.joinpath(template)), out=str(HERE.joinpath(out)), upgrade_only=conf.upgrade_only, ) freeze.main(args)