VAC_CSLR icon indicating copy to clipboard operation
VAC_CSLR copied to clipboard

unable to successfully install CTC

Open ethio-artifical opened this issue 1 year ago • 7 comments

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???

ethio-artifical avatar Mar 20 '23 06:03 ethio-artifical

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

ycmin95 avatar Mar 21 '23 12:03 ycmin95

@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????

ethio-artifical avatar Mar 22 '23 17:03 ethio-artifical

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

ycmin95 avatar Mar 23 '23 04:03 ycmin95

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.

WayenVan avatar Jan 22 '24 15:01 WayenVan

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

ethio-artifical avatar Jan 22 '24 16:01 ethio-artifical

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.

RafaelAmauri avatar Sep 01 '24 18:09 RafaelAmauri