baidu-research / ba-dls-deepspeech

Apache License 2.0
486 stars 174 forks source link

AttributeError: module 'ctc' has no attribute 'cpu_ctc_th' #37

Open Alasri-A opened 6 years ago

Alasri-A commented 6 years ago

I am trying to run the train.py . but I get this error: AttributeError: module 'ctc' has no attribute 'cpu_ctc_th'

untitled

Keshav-Aggarwal commented 6 years ago

I faced the same issue. The possible reasons are that either you have missed the python setup.py install or you can try to check the path where setup.py writes is different from the python's default path.

gabegaz commented 5 years ago

Hi Keshav-Aggarwal,

Same problem here. Setup.py in ctc/python looks like this in my system:

from distutils.core import setup setup(name='ctc', version='0.1', packages=['ctc'], package_dir={'ctc': '.'}, package_data={'ctc' : ['../build/libwarpctc.*']} )

Which row should I change so that it would go right. Or tell me where it is writing now? @getabegaz

hikaruhotta commented 4 years ago

First, clone ctc (https://github.com/sherjilozair/ctc) into ba-dls-deepspeech repository and then follow the instructions on https://github.com/sherjilozair/ctc to install warp-ctc first using cmake. Then direct the the python directory in ctc and run: "sudo python setup.py install". I was able to run test.py by doing so and erased all subsequent errors with regards to ctc.