I got this error also:
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:55: RuntimeWarning:
Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
Traceback (most recent call last):
File "/usr/local/bin/ocropus-rtrain", line 269, in <module>
network.lnorm.measure(amax(line)-line)
File "/usr/local/lib/python2.7/dist-packages/ocrolib/lineest.py", line
43, in measure
self.mad = mean(deltas[line!=0])
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line
2716, in mean
out=out, keepdims=keepdims)
File "/usr/lib/python2.7/dist-packages/numpy/core/_methods.py", line 67,
in _mean
ret = ret.dtype.type(ret / rcount)
FloatingPointError: invalid value encountered in double_scalars
Please help me
On Wednesday, June 17, 2015 at 5:33:39 PM UTC+2, Faida wrote:
>
> I used the ocropus-rtrain to train the ocropus with handwritten historical
> word images. It gave the following error after 13605 iterations. Could you
> help me on this error?
>
>
>
>
>
>
>
>
> *Traceback (most recent call last): File "/usr/local/bin/ocropus-rtrain",
> line 270, in <module> line =
> network.lnorm.normalize(line,cval=amax(line)) File
> "/usr/local/lib/python2.7/dist-packages/ocrolib/lineest.py", line 59, in
> normalize dewarped = self.dewarp(img,cval=cval,dtype=dtype) File
> "/usr/local/lib/python2.7/dist-packages/ocrolib/lineest.py", line 56, in
> dewarp dewarped = array(dewarped,dtype=dtype).TValueError: setting an
> array element with a sequence.*
>
> Thank you
>
--
You received this message because you are subscribed to the Google Groups
"ocropus" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ocropus/b5af1459-880a-4a25-be71-ccdbb873ea5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.