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

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

Open
Alasri-A opened this issue Feb 28, 2018 · 3 comments
Open

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

Alasri-A opened this issue Feb 28, 2018 · 3 comments

Comments

@Alasri-A
Copy link

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
Copy link

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
Copy link

gabegaz commented Oct 27, 2018

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
Copy link

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.

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

4 participants