FraPochetti / ImageTextRecognition

125 stars 85 forks source link

convnet error #3

Open riturajsoni opened 8 years ago

riturajsoni commented 8 years ago

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.

nitish11 commented 7 years ago

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
yu-changqian commented 7 years ago

There is a small error:

from nolearn.decaf import ConvNetFeatures
Makogan commented 7 years ago

Where should I add: from nolearn.decaf import ConvNetFeatures

adamzjw commented 7 years ago

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