question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Model Traning gives error

See original GitHub issue

Hi, i tried to train model but it gives this error. i cant train it. i am using python 3.9.2 and tensorflow nightly built. https://pypi.org/project/tf-nightly/

i tried this png for training and created gt.txt

https://d1ly52g9wjvbd2.cloudfront.net/img16/M/O/FF_Modern-Antiqua-RegularA.png

None Traceback (most recent call last): File “C:\Program Files\Python39\lib\runpy.py”, line 197, in _run_module_as_main return _run_code(code, main_globals, None, File “C:\Program Files\Python39\lib\runpy.py”, line 87, in run_code exec(code, run_globals) File "c:\calamari-ocr\Scripts\calamari-train.exe_main.py", line 7, in <module> File “c:\calamari-ocr\lib\site-packages\calamari_ocr\scripts\train.py”, line 367, in main run(args) File “c:\calamari-ocr\lib\site-packages\calamari_ocr\scripts\train.py”, line 357, in run trainer.train( File “c:\calamari-ocr\lib\site-packages\calamari_ocr\ocr\trainer.py”, line 197, in train self._run_train(train_net, train_start_time, progress_bar, self.dataset, self.validation_dataset, training_callback) File “c:\calamari-ocr\lib\site-packages\calamari_ocr\ocr\trainer.py”, line 213, in _run_train train_net.train(train_dataset, val_dataset, checkpoint_params, self.txt_postproc, progress_bar, training_callback) File “c:\calamari-ocr\lib\site-packages\calamari_ocr\ocr\backends\tensorflow_backend\tensorflow_model.py”, line 317, in train predict_func = K.function({t.op.name: t for t in [self.input_data, self.input_length, self.input_params, self.targets, self.targets_length]}, [self.cer, self.sparse_targets, self.sparse_decoded]) File “c:\calamari-ocr\lib\site-packages\calamari_ocr\ocr\backends\tensorflow_backend\tensorflow_model.py”, line 317, in <dictcomp> predict_func = K.function({t.op.name: t for t in [self.input_data, self.input_length, self.input_params, self.targets, self.targets_length]}, [self.cer, self.sparse_targets, self.sparse_decoded]) File “c:\calamari-ocr\lib\site-packages\tensorflow\python\keras\engine\keras_tensor.py”, line 236, in op raise TypeError('Keras symbolic inputs/outputs do not ’ TypeError: Keras symbolic inputs/outputs do not implement op. You may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ChWickcommented, Mar 20, 2021

ckpt files are the model

0reactions
carrieeexcommented, Aug 6, 2021

@ChWick Never mind, I got it work locally with Python 3.6 and tensorflow 2.2.1 (with calamari-ocr 1.0.5).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting unusual error while training a model in tensorflow
I am following the beginner's deep learning tutorial series by Sentdex. While training the model using python .\model.py , the following ...
Read more >
Training Error - an overview | ScienceDirect Topics
Model Evaluation. The results of running the models through the DMR are a superior performance by a boosted tree model as measured by...
Read more >
5 Must-Do Error Analysis Before You Put Your Model in ...
Error analysis 1: Size of training and validation dataset. As mentioned in the previous section, how well the model performs is solely based...
Read more >
Training & Test Error: Validating Models in Machine Learning
There are two important concepts used in machine learning: the training error and the test error. Learn how to prevent mistakes in model...
Read more >
What to do when you get an error - Hugging Face Course
The first suggestion is asking us to check whether the model ID is actually correct, so the first order of business is to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found