Thanks for your views.

On Sun, Sep 16, 2012 at 3:38 PM, Tim McNamara <[email protected]>wrote:

> Sorry to hear that you are having trouble. Here is a guess about what
> is happening.
>
> Numpy requires contiguous memory, because that is how the underlying C
> & Fortran libraries operate. As the whole matrix is important, parts
> of it are not placed into the swap partition. I am not entirely sure
> how to help, but this may explain why adding swap space is not fixing
> the problem.
>
>
> On 16 September 2012 20:22, Sriranga(78yrsold) <[email protected]>
> wrote:
> > Hi all,
> >
> > Kindly view the attached fles which are self explanatory. In ubuntu
> 12.04, I
> > have increased the linux-swap area to 12.07GB to beat the memory error
> > displayed during the run-box-training script. My machine is Dell having
> duel
> > intel processor with 3GB RAM.
> >
> > Before the start of the script the following output of "Free" command as
> > follow:
> >
> > 1) dell@ubuntu:~/ocropus/kannada-boxes$ free (BEFORE START THE PROGRAM)
> >                        total       used       free     shared    buffers
> > cached
> > Mem:       3086660     875884    2210776          0      16940     520168
> > -/+ buffers/cache:      338776    2747884
> > Swap:     12651516          0       12651516
> > dell@ubuntu:~/ocropus/kannada-boxes$ ./run-box-training
> >
> > 2)Traceback (most recent call last):
> >   File "/usr/local/bin/ocropus-gpageseg", line 331, in <module>
> >     process1((f,i+1))
> >   File "/usr/local/bin/ocropus-gpageseg", line 277, in process1
> >     segmentation = compute_segmentation(binary,scale)
> >   File "/usr/local/bin/ocropus-gpageseg", line 225, in
> compute_segmentation
> >     bottom,top,boxmap = compute_gradmaps(binary,scale)
> >   File "/usr/local/bin/ocropus-gpageseg", line 159, in compute_gradmaps
> >     args.hscale*scale),order=(1,0))
> >   File "/usr/lib/python2.7/dist-packages/scipy/ndimage/filters.py", line
> > 257, in gaussian_filter
> >     output, return_value = _ni_support._get_output(output, input)
> >   File "/usr/lib/python2.7/dist-packages/scipy/ndimage/_ni_support.py",
> line
> > 69, in _get_output
> >     output = numpy.zeros(shape, dtype = input.dtype.name)
> > MemoryError
> > dell@ubuntu:~/ocropus/kannada-boxes$ free (END OF THE PROGRAM)
> >                        total       used       free     shared    buffers
> > cached
> > Mem:       3086660     612396    2474264          0       1828     279748
> > -/+ buffers/cache:     330820    2755840
> > Swap:     12651516     214860   12436656
> > dell@ubuntu:~/ocropus/kannada-boxes$
> >
> > It could be seen that py programs does not utilise the swap effectively
> but
> > instead displayed memory error.  I have checked RAM/memory in the Dell
> > machine using feature diagnostics  - no problem is reported so far.  What
> > else memory problem ?
> > Even in tesseract-ocr ( which is not python built) I did not face with
> above
> > serious problem for 4 years - in winXP so far.
> >
> > Valuable solution for the above problem is requested.
> > With regards,
> > -Sriranga(79yrs)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ocropus" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "ocropus" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to