Coder Social home page Coder Social logo

Error when trying to train about ocrsegment HOT 7 CLOSED

 avatar commented on June 16, 2024
Error when trying to train

from ocrsegment.

Comments (7)

watersink avatar watersink commented on June 16, 2024

this wrong is simple, just because you don't have this file label.txt in the folder uw3,perhaps you shuould make one label.txt yourself

from ocrsegment.

watersink avatar watersink commented on June 16, 2024

you should write data label in this file,one line by one line

from ocrsegment.

 avatar commented on June 16, 2024

@watersink I copied K47LYBN.framed.png & K47LYBN.lines.png to the uw3 folder.
Then I created label.txt file, containing:

./K47LYBN.framed.png ./K47LYBN.lines.png

But when running train_test.py an error message appears:

home@home-lnx:~/ocrsegment$ python3 train_test.py 
2018-09-19 03:05:57.689610: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
2018-09-19 03:06:00.357113: W tensorflow/core/framework/allocator.cc:101] Allocation of 1113262080 exceeds 10% of system memory.
2018-09-19 03:06:02.264820: W tensorflow/core/framework/allocator.cc:101] Allocation of 1113262080 exceeds 10% of system memory.
2018-09-19 03:06:17.398615: W tensorflow/core/framework/allocator.cc:101] Allocation of 278236160 exceeds 10% of system memory.
2018-09-19 03:06:27.941151: W tensorflow/core/framework/allocator.cc:101] Allocation of 556472320 exceeds 10% of system memory.
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

Is this error caused by tensorflow itself, or is it because I don't have a GPU.
Can I train using only CPU?

from ocrsegment.

 avatar commented on June 16, 2024

Here are the commands that I used to install tensorflow and the other requirements:

conda create -n python3 python=3.6 pillow tensorflow=1.8
conda install -n python3 -c menpo opencv3

from ocrsegment.

watersink avatar watersink commented on June 16, 2024

pip3 install tensorflow-gpu==1.8.0
pip3 install tensorflow==1.8.0
pip3 install opencv-python

from ocrsegment.

 avatar commented on June 16, 2024

@watersink I tested training on my other system with 30GB ram and Quadro M4000 graphics card and it worked there.
Thanks!

from ocrsegment.

watersink avatar watersink commented on June 16, 2024

@mrocr I have one qq group(742072640),hope you can join,so that the discussion will be easier and faster.

from ocrsegment.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.