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

unrecognized arguments: --attn-use-lstm=False #58

Closed
feygina opened this issue Jan 24, 2018 · 3 comments
Closed

unrecognized arguments: --attn-use-lstm=False #58

feygina opened this issue Jan 24, 2018 · 3 comments

Comments

@feygina
Copy link

feygina commented Jan 24, 2018

The same problem with gpu-id. Can you please explain me how to set parameters. I didn't have problems with --max-width, --max-height, --max-prediction, --full-ascii, and --color. Thanks!

@emedvedev
Copy link
Owner

emedvedev commented Jan 25, 2018

attn-use-lstm has actually been removed a while ago: LSTM is used by default, and you can specify use-gru if you want GRU instead. I've updated the README to reflect that, good catch.

Setting parameters was a bit weird: some parameters, like gpu-id, were global, and others were specific to subcommands. The default argparse syntax is aocr [global] train [local], but it's confusing as hell, so I've just pushed a new version.

Updating to 0.6.0 (or master) should fix your issue: you should be able to use gpu-id with the other parameters now.

@feygina
Copy link
Author

feygina commented Jan 25, 2018

Thanks for your answer and update @emedvedev !

@emedvedev
Copy link
Owner

You're welcome! Glad you like the project :)

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