faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.39k stars 360 forks source link

Pipeline constructor initializing libiomp5 multiple times #251

Open Jeff-Winchell opened 4 months ago

Jeff-Winchell commented 4 months ago

Just running the first two lines of your sample code on a very basic environment generates errors.

import keras_OCR pipeline = keras_ocr.pipeline.Pipeline()

"OMP: Error #15: Initializing libiomp5, but found libiomp5md.dll already initialized. This means that multiple copies of the OpenMP runtime have been linked into the program."

This is in an environment built by these few lines conda create --yes --name OCR python=3.9 tensorflow=2.10.0 nbclassic=1.1.0 Conda activate OCR pip install keras-ocr==0.9.3