You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
When training a model I get the following error:
INFO 2024-11-03 19:13:30,783 FOLD 0: INFO 2024-11-03 19:13:30,684 calamari_ocr.ocr.training.trai: Training finished
INFO 2024-11-03 19:13:30,884 FOLD 0: 2024-11-03 19:13:30.833537: W tensorflow/core/kernels/data/generator_dataset_op.cc:107] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated.
INFO 2024-11-03 19:13:30,884 FOLD 0: [[{{node PyFunc}}]]
CRITICAL 2024-11-03 19:13:39,935 tfaip.util.logging: Uncaught exception
Traceback (most recent call last):
File "/home/fablab/miniconda3/envs/test_gpu/bin/calamari-cross-fold-train", line 8, in <module>
sys.exit(run())
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/site-packages/calamari_ocr/scripts/cross_fold_train.py", line 13, in run
return main(parse_args())
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/site-packages/calamari_ocr/scripts/cross_fold_train.py", line 31, in main
trainer.run()
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/site-packages/calamari_ocr/ocr/training/cross_fold_trainer.py", line 321, in run
pool.map_async(train_individual_model, run_args).get()
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/site-packages/calamari_ocr/ocr/training/cross_fold_trainer.py", line 53, in train_individual_model
verbose=run_args.get("verbose", False),
File "/home/fablab/miniconda3/envs/test_gpu/lib/python3.7/site-packages/calamari_ocr/utils/multiprocessing.py", line 83, in run
raise Exception("Error: Process finished with code {}".format(process.returncode))
Exception: Error: Process finished with code -9
Can you help me understand what might cause this error and what its impact is? Is this error even relevant, as it is printed after the Training finished message?
I have the same error, it does not affect the training process (it occurs in the training process after the training is finished). So far I was not able to pin down the reason for the error in calamari, it might be fixed in newer tensorflow versions (cf. tensorflow/tensorflow#24570).
Hello!
When training a model I get the following error:
Can you help me understand what might cause this error and what its impact is? Is this error even relevant, as it is printed after the
Training finished
message?I am using:
The training command I used was:
The text was updated successfully, but these errors were encountered: