Kindai-OCR
Kindai-OCR copied to clipboard
Code does not work
Thank you for putting this online, but I could not run the code as provided.
I am not sure how you generated requirements.txt. "Python" is not a valid entry there. If you have a working environment you could generate it with pip freeze > requirements.txt
.
I worked around that and ran into an issue with multiprocessing - you're setting cuda
on the model to be a boolean from the config object, but multiprocessing tried to use cuda
to convert parameters, and that didn't work. I fixed that by changing the cuda
attribue to use_cuda
wherever I found it, but then had errors with some parameters being cuda and some non-cuda. At that point I gave up.
Let me know if there's some information I could provide that would help.
Me too. At first, same error , while tring to uses cpu only. To avoid the error, I install the torch with cuda, but it still not working .
`./pretrain/vgg16_bn-6c64b313.pth Loading text detection model from checkpoint ./pretrain/synweights_4600.pth total words/phones 5748 ./data/test\1.jpg/data/test\1.jpg
infer/postproc time : 9.427/0.210
Traceback (most recent call last):
File "D:\Green\Kindai-OCR-master\test.py", line 349, in
Same Error to me!
Same error
Same issue. It's like the versions they gave us just aren't made to work.