Comments (6)
Your windows machine uses backslashes in the path, while your annotations file has forward slashes.
from attention-ocr.
@AdamWP OH, I missed it. Thank you for the comment! Without it, I'll never get it.
from attention-ocr.
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.
@nickppbd pushed a small fix that should help, please update the module and try again :)
from attention-ocr.
@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.
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)
- Works with phrases/sentences? HOT 1
- Input Shape HOT 1
- Prediction on negative class
- Attribute Error: 'int' object has no attribute 'value' for attn_length
- Calculating training steps with dataset size and batchsize? HOT 1
- 关于注意力可视化,我有点读不懂
- Error on train phase
- Significance of hyperparameters in defaults.py HOT 1
- TF 2 Implementation error HOT 3
- Unable to export model after training HOT 1
- can it detect numbers
- How to stop the log message appear on console
- Someone please share their trained model on Synth 90k or equivalent
- attention masks from saved model
- how to Upgrade to Tensorflow 2 ? HOT 1
- given num-epoch 200 but the training is continuing Step 328+, for how many steps it will continue? HOT 1
- Exporting the model to tensorflowjs HOT 1
- README.md
- OSS License compatibility question
- Training dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attention-ocr.