Skip to content
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

Trained tdnn model causes broken pipe error #307

Open
vikraman22 opened this issue May 25, 2022 · 0 comments
Open

Trained tdnn model causes broken pipe error #307

vikraman22 opened this issue May 25, 2022 · 0 comments

Comments

@vikraman22
Copy link

vikraman22 commented May 25, 2022

I trained a kaldi tdnn model and and modified it for gentle format
I tried running align.py by it causes the following error ! Can anyone help me
with this?

/var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
ERROR:gentle.standard_kaldi:hclg_path does not exist: /var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
/Users/adminuser/Documents/gentle/gentle/exp/tdnn_7b_chain_online/
/var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
ERROR:gentle.standard_kaldi:hclg_path does not exist: /var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/align.py", line 58, in
result = aligner.transcribe(wavfile, progress_cb=on_progress, logging=logging)
File "/Users/adminuser/Documents/gentle/gentle/gentle/forced_aligner.py", line 24, in transcribe
words, duration = self.mtt.transcribe(wavfile, progress_cb=progress_cb)
File "/Users/adminuser/Documents/gentle/gentle/gentle/transcriber.py", line 51, in transcribe
pool.map(transcribe_chunk, range(n_chunks))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/Users/adminuser/Documents/gentle/gentle/gentle/transcriber.py", line 38, in transcribe_chunk
k.push_chunk(buf)
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 39, in push_chunk
self._p.stdin.write(buf) #arr.tostring())
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe

Initially I got a called subprocess error I tried to decode the output by changing line 116 in language_model.py to

try:
devnull = open(os.devnull, 'wb')

    print([MKGRAPH_PATH,
                    proto_langdir,
                    txt_fst_file.name,
                    hclg_filename])

    sub_result = subprocess.check_output([MKGRAPH_PATH,
                    proto_langdir,
                    txt_fst_file.name,
                    hclg_filename],
                    stderr=devnull)
except subprocess.CalledProcessError as e:
    sub_result = e.output.decode() 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant