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

Does it support special ascii characters ? #82

Open
hskzlj opened this issue Jun 8, 2018 · 2 comments
Open

Does it support special ascii characters ? #82

hskzlj opened this issue Jun 8, 2018 · 2 comments

Comments

@hskzlj
Copy link

hskzlj commented Jun 8, 2018

Traceback (most recent call last):

File "src/launcher.py", line 146, in
main(sys.argv[1:], exp_config.ExpConfig)
File "src/launcher.py", line 143, in main
model.launch()
File "/test/data/dl/ocr/Attention-OCR/src/model/model.py", line 224, in launch
for batch in self.s_gen.gen(self.batch_size):
File "/test/data/dl/ocr/Attention-OCR/src/data_util/data_gen.py", line 71, in gen
img_bw, word = self.read_data(img_path, lex)
File "/test/data/dl/ocr/Attention-OCR/src/data_util/data_gen.py", line 122, in read_data
assert 96 < ord(c) < 123 or 47 < ord(c) < 58
AssertionError

Can it be modified to ignore it?

@rahuladream
Copy link

Hey did you find the solution?

@vadimen
Copy link

vadimen commented Feb 4, 2021

you should find what id your special symbol has in unicode table, then you can do something like: "assert 96 < ord(c) < 123 or 47 < ord(c) < 58 or ord(c) == you_symbol_id"

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

3 participants