ImageTextRecognition icon indicating copy to clipboard operation
ImageTextRecognition copied to clipboard

convnet error

Open riturajsoni opened this issue 8 years ago • 4 comments

Traceback (most recent call last): File "main.py", line 21, in maybe_text = user.select_text_among_candidates('/home/rituraj/ImageTextRecognition-master/linearsvc-hog-fulltrain2-90.pickle') File "/home/rituraj/ImageTextRecognition-master/userimageski.py", line 100, in select_text_among_candidates model = cPickle.load(fin) File "/home/rituraj/ImageTextRecognition-master/data.py", line 21, in from nolearn.convnet import ConvNeNetFeatures ImportError: No module named convnet

Hi I am getting the above error ply help to resolve it.

riturajsoni avatar Jul 05 '16 09:07 riturajsoni

The package nolearn has been upgraded, and nolearn.convnet is deprecated. Ref

Use the below line to fix the issue.

from nolearn.decaf import ConvNeNetFeatures

To install the latest nolearn package, follow the below lines.

pip install -r https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt
pip install git+https://github.com/dnouri/nolearn.git@master#egg=nolearn==0.7.git

nitish11 avatar Nov 14 '16 07:11 nitish11

There is a small error:

from nolearn.decaf import ConvNetFeatures

yu-changqian avatar Apr 19 '17 08:04 yu-changqian

Where should I add: from nolearn.decaf import ConvNetFeatures

Makogan avatar May 25 '17 08:05 Makogan

looks like it's caused by mismatch of the nolearn version from the pickle file. Use version 0.5 will fix this.

adamzjw avatar Jun 08 '17 09:06 adamzjw