MahmoudAshraf97 / ctc-forced-aligner

Text to speech alignment using CTC forced alignment
146 stars 30 forks source link

the same error in python and terminal #34

Closed 8600862 closed 2 weeks ago

8600862 commented 2 weeks ago
File "/data/ctc-forced-aligner/ctc_forced_aligner/alignment_utils.py", line 13, in <module>
    from .ctc_forced_aligner import forced_align as forced_align_cpp
ModuleNotFoundError: No module named 'ctc_forced_aligner.ctc_forced_aligner'

If I change forced_align_cpp to forced_align in use, it will get error:

File "/data/ctc-forced-aligner/ctc_forced_aligner/alignment_utils.py", line 206, in forced_align
    paths, scores = forced_align(
  [Previous line repeated 992 more times]
  File "/data/ctc-forced-aligner/ctc_forced_aligner/alignment_utils.py", line 202, in forced_align
    if np.max(targets) >= log_probs.shape[-1] and np.min(targets) >= 0:
  File "/data/anaconda3/envs/aligner/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 2810, in max
    return _wrapreduction(a, np.maximum, 'max', axis, None, out,
  File "/data/anaconda3/envs/aligner/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 72, in _wrapreduction
    passkwargs = {k: v for k, v in kwargs.items()
RecursionError: maximum recursion depth exceeded while calling a Python object
MahmoudAshraf97 commented 2 weeks ago

You should not change it after cloning the repo you need to install it using pip install -e .

8600862 commented 2 weeks ago

You should not change it after cloning the repo you need to install it using pip install -e .

it works, thanks