Closed flipmedia closed 7 years ago
Looks like you have not installed theanet
. Please install all requirements and try again.
Dear ChillarAnand, I try to install theanet using command $ sudo pip install theanets
it work fine . But still got the same error. I am using ubuntu 16.10
Waiting your fast reply
Thanks Anes
Dear ChiillerAnand, That problem now fixed, but still the system not work as expected ... My output is
insight@Inspiron:~/Downloads/banti_telugu_ocr-master$ sudo python3 recognize.py sample_images/praasa.tif [sudo] password for insight: Command line Arguments calibration 1 input_file_or_dir sample_images/praasa.tif labels_fname labellings/alphacodes.lbl log_level 20 ngram_fname library/mega.123.pkl nnet_fname library/nn.pkl scaler_fname scalings/relative48.scl
/usr/local/lib/python3.5/dist-packages/Theano-0.8.2-py3.5.egg/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Initializing the OCR
Traceback (most recent call last):
File "recognize.py", line 128, in
Please advise where I need to fix
Thanks Anes
export THEANO_FLAGS='floatX=float32'
Run this command to set flags and re run it.
Dear ChillarAnand, I try to run it on Command line like this insight@Inspiron:~$ export THEANO_FLAGS 'floatX=float32 but no effect
Try to run on Python Terminal as
insight@Inspiron:~$ python3 Python 3.5.2 (default, Sep 10 2016, 08:21:44) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information.
export THEANO_FLAGS 'floatX=float32 File "
", line 1 export THEANO_FLAGS 'floatX=float32 ^ SyntaxError: invalid syntax
I have no idea what you mean to run that command . Please explain
Thanks Anes
You have to export like this in terminal
$ export THEANO_FLAGS='floatX=float32'
and then run
$ python3 recognize.py sample_images/praasa.tif
Hi ChillerAnand, The export command work fine , but later command $ python3 recognize.py sample_images/praasa.tif give output as below:
python3 recognize.py sample_images/praasa.tif Command line Arguments calibration 1 input_file_or_dir sample_images/praasa.tif labels_fname labellings/alphacodes.lbl log_level 20 ngram_fname library/mega.123.pkl nnet_fname library/nn.pkl scaler_fname scalings/relative48.scl
/usr/local/lib/python3.5/dist-packages/Theano-0.8.2-py3.5.egg/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
Initializing the OCR
Traceback (most recent call last):
File "recognize.py", line 128, in
Please advise
Thanks Anes
Are you exportinv variables correctly?
You have to export like this in terminal
$ export THEANO_FLAGS='floatX=float32'
and then run verify them with
$ echo $THEANO_FLAGS
and then run
$ python3 recognize.py sample_images/praasa.tif
Dear Team, I installed your system and try to run using command $ python3 recognize.py sample_images/praasa.tif I got error as
Command line Arguments calibration 1 input_file_or_dir sample_images/praasa.tif labels_fname labellings/alphacodes.lbl log_level 20 ngram_fname library/mega.123.pkl nnet_fname library/nn.pkl scaler_fname scalings/relative48.scl
Traceback (most recent call last): File "recognize.py", line 121, in
from banti.ocr import OCR
File "/home/insight/Downloads/banti_telugu_ocr-master/banti/ocr.py", line 6, in
from .classifier import Classifier
File "/home/insight/Downloads/banti_telugu_ocr-master/banti/classifier.py", line 5, in
from theanet.neuralnet import NeuralNet
ImportError: No module named 'theanet'
Please advise What I do to avoid and run the system smooth...
Waiting reply
Thanks Anes