-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Loading Error #4
Comments
try cd psenet dir to make pse moudle? |
I'm sorry, I'm not familiar with C++, could you explain more specifically? |
cd psenet/pse |
Still no sign of luck... cmake output is: And run app.py got this error: |
I'm sorry! I was experimenting with Linux, and I probably didn't know there were problems with Unix |
Do not use conda, run this in you bash: |
Thx. |
Loading test image from web browser got this error:
`find: -xtype: unknown primary or operator
make: pse.so is up to date.
device: cpu
load models
device: cpu
load models
device: cpu
load models
device: cpu
load models
http://0.0.0.0:8080/
127.0.0.1:57218 - - [04/Mar/2020 16:53:54] "HTTP/1.1 GET /ocr" - 200 OK
Traceback (most recent call last):
File "/Users/oblivion/anaconda3/envs/tf37/lib/python3.7/site-packages/web/application.py", line 289, in process
return self.handle()
File "/Users/oblivion/anaconda3/envs/tf37/lib/python3.7/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/Users/oblivion/anaconda3/envs/tf37/lib/python3.7/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/Users/oblivion/anaconda3/envs/tf37/lib/python3.7/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "/Users/oblivion/chineseocr_lite/app.py", line 83, in POST
result= text_predict(img)
File "/Users/oblivion/chineseocr_lite/model.py", line 119, in text_predict
preds, boxes_list, rects_re, t = text_handle.predict(img, long_size=pse_long_size)
File "/Users/oblivion/chineseocr_lite/psenet/PSENET.py", line 99, in predict
preds, boxes_list,rects = pse_decode(preds[0], self.scale)
File "/Users/oblivion/chineseocr_lite/psenet/pse/init.py", line 58, in decode
pred, label_values = pse_warpper(preds, 5)
File "/Users/oblivion/chineseocr_lite/psenet/pse/init.py", line 19, in pse_warpper
from .pse import pse_cpp
ImportError: dlopen(/Users/oblivion/chineseocr_lite/psenet/pse/pse.so, 2): no suitable image found. Did find:
/Users/oblivion/chineseocr_lite/psenet/pse/pse.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
/Users/oblivion/chineseocr_lite/psenet/pse/pse.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
127.0.0.1:57226 - - [04/Mar/2020 16:54:43] "HTTP/1.1 POST /ocr" - 500 Internal Server Error
`
Any idea what happened?
Platform: MacOS 10.15.3 Python 3.7 Pytorch 1.4.0
The text was updated successfully, but these errors were encountered: