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

instalation guide please #19

Open
kucingkembar opened this issue Oct 15, 2021 · 0 comments
Open

instalation guide please #19

kucingkembar opened this issue Oct 15, 2021 · 0 comments

Comments

@kucingkembar
Copy link

sorry if I am rude, stupid, and my bad English,
I tried this "program" because I tried other "programs" but "failed" read Chinese characters
I am quite a newbie and I use windows 10, and I have some questions:
A. does CUDA 9.0 necessary to install?, I tried to install it but it requires visual-studio, and I don't know what I must di next
B. where I must put "best_accuracy_0823.pth"?
C. where I must edit :

pretrained crnn model configuration:
--output_channel 512 \
--hidden_size 256 \
--Transformation None \
--FeatureExtraction ResNet \
--SequenceModeling BiLSTM \
--Prediction CTC 

D. "change config.py file and run", what I must change in config.py?
E. I do this code and the result is below, can you help me, please?

C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR>C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\infer.py C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\demo_images\demo_0.jpg
Traceback (most recent call last):
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\infer.py", line 124, in <module>
    opt = ConfigOpt()
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\config.py", line 31, in __init__
    self.character = self.get_character()
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\config.py", line 40, in get_character
    for line in charf:
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 22: character maps to <undefined>

F. is this "program" have a "pre-trained model" or do I need to train it myself?
thanks for reading, and have a nice day

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

1 participant