INNER CODE UNIT · Python
read_config
TimoBolkart/voca · config_parser.py:93
def read_config(fname):
if not os.path.exists(fname):
print('Config not found %s' % fname)
return
config = configparser.RawConfigParser()
config.read(fname)
config_parms = {}
config_parms['checkpoint_dir'] = config.get('Input Output', 'checkpoint_dir')
config_parms['expression_basis_fname'] = config.get('Input Output', 'expression_basis_fname')
config_parms['template_fname'] = config.get('Input Output', 'template_fname')
config_parms['deepspeech_graph_fname'] = config.get('Input Output', 'deepspeech_graph_fname')
config_parms['verts_mmaps_path'] = config.get('Input Output', 'verts_mmaps_path')
config_parms['raw_audio_path'] = config.get('Input Output', 'raw_audio_path')
config_parms['processed_audio_path'] = config.get('Input Output', 'processed_audio_path')
config_parms['templates_path'] = config.get('Input Output', 'templates_path')