CoEDL / elpis

🙊 software for creating speech recognition models.
https://elpis.readthedocs.io/en/latest/
Apache License 2.0
152 stars 33 forks source link

Aha, found where init resets config, so not we can load state objects #64

Closed benfoley closed 5 years ago

benfoley commented 5 years ago

Previously, each time KaldiInterface was used, the interface.json config file was rebuilt. Tracked it down to the fsobject.py init doing self.ConfigurationInterface(self)._save({}) which cleared the file, then repopulated with name, hash etc. I've added a check to now only do that if there is not an existing interface file, so any prior state objects are still accessible by doing eg:

kaldi = KaldiInterface('/elpis/state')
m = kaldi.get_model('mx')

This means that we can now do some training, and have a second script access the dataset/pron_dicts/models from disk.

benfoley commented 5 years ago

hmm, seems like the GUI needs some more work before reviewing this.