title: RuntimeError: [enforce fail at CPUAllocator.cpp:65] . DefaultCPUAllocator: can't allocate memory
body: <p>This is the python script i'm trying to run:</p>
  <pre><code>import easyocr 
  reader = easyocr.Reader(['en'])
  result = reader.readtext('test.jpg')
  print(result)
  </code></pre>
  <p>I tried it on my pc and it works.
  However, when trying it on Raspberry  Pi it doesn't.
  I am using a virtual environment.</p>
  <ul>
  <li>numpy version: 1.20.2</li>
  <li>easyocr version: 1.3.0.1</li>
  <li>torch version: 1.7.0a0+e85d494</li>
  <li>Torchvision version:0.8.0a0+45f960c</li>
  <li>Python version: 3.7.3</li>
  </ul>
  <p>This is the what I get when I run it through the terminal:</p>
  <pre><code>CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
  Traceback (most recent call last):
    File &quot;ocr.py&quot;, line 3, in &lt;module&gt;
      result = reader.readtext('test.jpg')
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/easyocr.py&quot;, line 379, in readtext
      add_margin, False)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/easyocr.py&quot;, line 273, in detect
      False, self.device, optimal_num_chars)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/detection.py&quot;, line 81, in get_textbox
      bboxes, polys = test_net(canvas_size, mag_ratio, detector, image, text_threshold, link_threshold, low_text, poly, device, estimate_num_chars)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/detection.py&quot;, line 38, in test_net
      y, feature = net(x)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 727, in _call_impl
      result = self.forward(*input, **kwargs)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/craft.py&quot;, line 60, in forward
      sources = self.basenet(x)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 727, in _call_impl
      result = self.forward(*input, **kwargs)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/easyocr/model/modules.py&quot;, line 61, in forward
      h = self.slice1(X)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 727, in _call_impl
      result = self.forward(*input, **kwargs)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/container.py&quot;, line 117, in forward
      input = module(input)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/module.py&quot;, line 727, in _call_impl
      result = self.forward(*input, **kwargs)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/conv.py&quot;, line 423, in forward
      return self._conv_forward(input, self.weight)
    File &quot;/home/pi/johara/ocri/lib/python3.7/site-packages/torch/nn/modules/conv.py&quot;, line 420, in _conv_forward
      self.padding, self.dilation, self.groups)
  RuntimeError: [enforce fail at CPUAllocator.cpp:65] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 1519386624 bytes. Error code 12 (Cannot allocate memory)
  </code></pre>