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

error while using the model with CTC wordbeamsearch #8

Closed
NitiKaur opened this issue Jul 7, 2020 · 2 comments
Closed

error while using the model with CTC wordbeamsearch #8

NitiKaur opened this issue Jul 7, 2020 · 2 comments

Comments

@NitiKaur
Copy link

NitiKaur commented Jul 7, 2020

tensorflow version 1.8
python version 3.7
ubuntu 18.04 LTS

I get the following error after copying the tfwordbeamsearch.so file of the CTC repository into the src directory of your repository.
Traceback (most recent call last):
File "main.py", line 194, in
main()
File "main.py", line 178, in main
decoderType, mustRestore=False)
File "/home/niti/Desktop/HTR/HTR/src/Model.py", line 36, in init
self.setupCTC()
File "/home/niti/Desktop/HTR/HTR/src/Model.py", line 177, in setupCTC
chars = codecs.open(FilePaths.wordCharList.txt, 'r').read()
AttributeError: type object 'FilePaths' has no attribute 'wordCharList'

Also is there any way I can recognise the characters like ./,!=+- etc instead of the word characters only using CTC?
Also, can this be trained on Google colab

@NitiKaur
Copy link
Author

NitiKaur commented Jul 7, 2020

tensorflow version 1.8
python version 3.7
ubuntu 18.04 LTS

I get the following error after copying the tfwordbeamsearch.so file of the CTC repository into the src directory of your repository.
Traceback (most recent call last):
File "main.py", line 194, in
main()
File "main.py", line 178, in main
decoderType, mustRestore=False)
File "/home/niti/Desktop/HTR/HTR/src/Model.py", line 36, in init
self.setupCTC()
File "/home/niti/Desktop/HTR/HTR/src/Model.py", line 177, in setupCTC
chars = codecs.open(FilePaths.wordCharList.txt, 'r').read()
AttributeError: type object 'FilePaths' has no attribute 'wordCharList'

Also is there any way I can recognise the characters like ./,!=+- etc instead of the word characters only using CTC?
Also, can this be trained on Google colab

@lamhoangtung
Copy link
Owner

Seems like the code that you having issue with was not belong to this repo but https://github.com/githubharald/SimpleHTR

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

2 participants