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

unable to successfully install CTC #31

Open
ethio-artifical opened this issue Mar 20, 2023 · 7 comments
Open

unable to successfully install CTC #31

ethio-artifical opened this issue Mar 20, 2023 · 7 comments

Comments

@ethio-artifical
Copy link

hello guys iam unable to successfullly install ctc in window machine???

is there another metod to install and use ctc that are used in the project. Please???

@ycmin95
Copy link
Collaborator

ycmin95 commented Mar 21, 2023

As mentioned in README, you can also try the pytorch version of CTC.

@ethio-artifical
Copy link
Author

@ycmin95 can you tell me if i get any other method to install ctcdecode i am very struggle to install the (https://github.com/parlance/ctcdecode)

please tell me if there is any other method????

@ycmin95
Copy link
Collaborator

ycmin95 commented Mar 23, 2023

You can also try decoder provided in tensorflow, which is also adopted by recent work.

@WayenVan
Copy link

Hi, if you still looking for solution, I successfully installed the ctcdeocder in pytorcb==2.0.1 and gcc==11.04, here the gcc version is especially important for installation. You can easily use different gcc version in an anaconda environment.

@ethio-artifical
Copy link
Author

@WayenVan
Hi, thanks for the reply do you execute this command in ubuntu or Windows?

@RafaelAmauri
Copy link

Sorry for necrobumping an old thread, but in case somebody else needs a solution:

The reason ctcdecode is not working for a lot of people is because ctcdecode stopped being updated for some time now, and pytorch updating to version 2.0 changed a lot of things - including things that ctcdecode depends on.

What I did was install an older version of pytorch that supports ctcdecode. I am using pytorch version 1.13.1, and you can install it by following the steps in here https://pytorch.org/get-started/previous-versions/#v1131. After that ctcdecode should install without problems.

Also, before updating an older version of pytorch, you should get an older version of python to go along with it, so nothing breaks unexpectedly. I recommend python 3.8.10 because that's what worked for me. You can get this specific version of python here: https://www.python.org/downloads/release/python-3810/

It's relevant to say that there IS a fork of ctcdecode that updates ctcdecode it so it is compatible with the newer version of pytorch (https://github.com/WayenVan/ctcdecode), but I haven't tested it. Honestly, using an older version of pytorch works great and I haven't encoutered any problems.

@WayenVan
Copy link

Sorry for necrobumping an old thread, but in case somebody else needs a solution:

The reason ctcdecode is not working for a lot of people is because ctcdecode stopped being updated for some time now, and pytorch updating to version 2.0 changed a lot of things - including things that ctcdecode depends on.

What I did was install an older version of pytorch that supports ctcdecode. I am using pytorch version 1.13.1, and you can install it by following the steps in here https://pytorch.org/get-started/previous-versions/#v1131. After that ctcdecode should install without problems.

Also, before updating an older version of pytorch, you should get an older version of python to go along with it, so nothing breaks unexpectedly. I recommend python 3.8.10 because that's what worked for me. You can get this specific version of python here: https://www.python.org/downloads/release/python-3810/

It's relevant to say that there IS a fork of ctcdecode that updates ctcdecode it so it is compatible with the newer version of pytorch (https://github.com/WayenVan/ctcdecode), but I haven't tested it. Honestly, using an older version of pytorch works great and I haven't encoutered any problems.

the problems happen in third-party's C++ code, it is quite straightforward to fix if one knows the basics about it.

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