-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature type fbank_and_pitch throws error #237
Comments
It doesn't look like the Which file is the code that you reference in this issue located in? Can you try modifying your code to import the configuration loading file by adding this line at the top of the imports: from persephone import config |
|
It would appear that the settings file is not being found. Can you try editing the config.py file in your site packages to include an absolute path to your configuration file? Knowing what happens in this case will help me determine what the cause of this bug is. That file will be: config_file = configparser.ConfigParser()
config_file.read('settings.ini') # Change this to the absolute path to your settings.ini file |
This is a bit of a strange bug... I'm not entirely sure what's causing this. Is the code you are working on open source? If so I can try to reproduce the bug if you have a link to the source |
Yes, check this |
Well, this is some strange behavior. After deleting the feat directory it seems /home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/bin/python /home/irfan/PycharmProjects/Timit_Phone_Recognition/transcribe.py
WARNING:tensorflow:From /home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/lib/python3.6/site-packages/persephone/model.py:22: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
WARNING:tensorflow:From /home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/lib/python3.6/site-packages/persephone/model.py:27: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
Unhandled exception
Traceback (most recent call last):
File "/home/irfan/PycharmProjects/Timit_Phone_Recognition/transcribe.py", line 7, in <module>
kids_corpus = corpus.Corpus("fbank_and_pitch", "phonemes", "kids_speech_sample")
File "/home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/lib/python3.6/site-packages/persephone/corpus.py", line 200, in __init__
self.prepare_feats()
File "/home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/lib/python3.6/site-packages/persephone/corpus.py", line 389, in prepare_feats
feat_extract.convert_wav(path, mono16k_wav_path)
File "/home/irfan/PycharmProjects/Timit_Phone_Recognition/.tpr/lib/python3.6/site-packages/persephone/preprocess/feat_extract.py", line 186, in convert_wav
subprocess.run(args)
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '"ffmpeg"': '"ffmpeg"'
Process finished with exit code 1 |
Okay, for now, it seems Kaldi pitch feature working after updating the
|
Ah yes, I missed this, currently to set the root path for Kaldi you must use @mirfan899 thanks for this issue, I didn't realize the docs were incorrect here. @oadams Do you think we should allow the support of |
I think I have fixed this issue and improved the default for Kaldi paths over in PR #238, would be keen to merge that in if the problem is fixed. |
I've created the
settings.ini
file to use Kaldi for feature extraction but it seems Persephone not picking up thesettings.ini
file from the directory.here is my directory structure.
tree -L 1 . ├── constants.py ├── continuous_training.py ├── exp ├── kids_speech_sample ├── librispeech-lexicon.json ├── main.py ├── preprocess.py ├── __pycache__ ├── settings.ini ├── transcribe.py └── utils.py
Code generating the issue.
and error message
my
settings.ini
file content.The text was updated successfully, but these errors were encountered: