Git Product home page Git Product logo

Comments (6)

AdamWP avatar AdamWP commented on August 17, 2024

Your windows machine uses backslashes in the path, while your annotations file has forward slashes.

from attention-ocr.

 avatar commented on August 17, 2024

@AdamWP OH, I missed it. Thank you for the comment! Without it, I'll never get it.

from attention-ocr.

 avatar commented on August 17, 2024

I tried on my Ubuntu 14.04 LTS, But The same error happened.
I used forward slashes.
I did the command at my home folder.

My home folder has datasets folder.
datasets folder has images folder and annotations-training.txt file.
images folder has coley.jpg file.

annotations-training.txt file is just like below
datasets/images/coley.jpg coley

I activated the Virtualenv environment by issuing 'source ~/tensorflow/bin/activate' command.
No error about tensorflow module problem, But ERROR missing filename or labe happened.

(tensorflow)***~$ aocr dataset ./datasets/annotations-training.txt ./datasets/training.tfrecords
2018-02-05 21:01:17.813949: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2
2018-02-05 21:01:17,814 root INFO Building a dataset from ./datasets/annotations-training.txt.
2018-02-05 21:01:17,815 root INFO Output file: ./datasets/training.tfrecords
2018-02-05 21:01:17,851 root ERROR missing filename or label, ignoring line 1: datasets/images/coley.jpg coley
2018-02-05 21:01:17,852 root INFO Dataset is ready: 1 pairs.
2018-02-05 21:01:17,852 root INFO Longest label (0):

ps. aocr.log file was created in datasets/images folder.

from attention-ocr.

emedvedev avatar emedvedev commented on August 17, 2024

@nickppbd pushed a small fix that should help, please update the module and try again :)

from attention-ocr.

 avatar commented on August 17, 2024

@emedvedev Thanks, It works well!!! pip uninstall aocr and pip install aocr and I aocr datasets two images files and created training.tfrecords over 5.0kB and I aocr trained for the first time!!!

from attention-ocr.

emedvedev avatar emedvedev commented on August 17, 2024

Great, I'm glad it works for you now :) Closing the issue, but please feel free to re-open or open a new one if you have more questions.

from attention-ocr.

Related Issues (20)

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.