oyxhust / CNN-LSTM-CTC-text-recognition

CNN and LSTM model for text recognition
259 stars 88 forks source link

lstm_predictor.py ImportError: No module named mxnet_predict #1

Open asdliuquan opened 7 years ago

asdliuquan commented 7 years ago

train_lstm.py执行成功后,执行lstm_predictor.py失败,报错如下,想问一下:mxnet_predict是哪边的?如何安装?我在mxnet中并没有找到这个module $ python lstm_predictor.py Traceback (most recent call last): File "lstm_predictor.py", line 9, in from mxnet_predict import Predictor ImportError: No module named mxnet_predict

oyxhust commented 7 years ago

I think you may not compile mxnet python when compiling mxnet. Or it can be found, I didn't have such problem.

TianyeAlex commented 7 years ago

I run the crnnpredictor.py get check failed: type->ptype_info == &typeid(T) and core dumped at last. I have done 'make' in mxnet/amalgamation and get libmxnet_predict.so in lib folder. so you know how to solve this? thx!

stainless-steel-rat commented 7 years ago

遇到了同样的问题,请问找到解决方法了吗?

TianyeAlex commented 7 years ago

try this,import mxnet_predict and mxnet together may cause conflict. from mxnet_predict import Predictor #import mxnet as mx

oyxhust commented 7 years ago

I think you should add /path/to/mxnet/amalgamation/python in your environment.