githubharald / CTCWordBeamSearch

Connectionist Temporal Classification (CTC) decoder with dictionary and language model.
https://towardsdatascience.com/b051d28f3d2e
MIT License
557 stars 160 forks source link

testCustomOp.py error #39

Closed DucLong06 closed 4 years ago

DucLong06 commented 4 years ago

Hi Harald i use : ubuntu 18.04 tensorflow 1.5.0 python 3.6.5 gcc version 7.5.0 i run buildTF.sh done next i run testCustomOp.py but i had a error :

Mini example:
Label string: [1 0 3]
Char string: "ba"
Traceback (most recent call last):
  File "testCustomOp.py", line 92, in <module>
    testRealExample()
  File "testCustomOp.py", line 81, in testRealExample
    res = testCustomOp(mat, corpus, chars, wordChars)
  File "testCustomOp.py", line 24, in testCustomOp
    assert len(chars) + 1 == mat.shape[2]
AssertionError

Can you help me ? thanks you Long

githubharald commented 4 years ago

as the line numbers do not match the actual line numbers of the "assert", I guess you changed the code!? Please use exactly the version from this repo.

DucLong06 commented 4 years ago

thank you so much