diff --git a/README.md b/README.md index d74c4a9..f17d194 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ * [OCR-D](https://github.com/qurator-spk/eynollah#use-as-ocr-d-processor) interface ## Installation -Python versions `3.7-3.10` with Tensorflow `>=2.4` are currently supported. +Python versions `3.7-3.10` with Tensorflow versions `2.4-2.11` are currently supported. -For (limited) GPU support the [matching](https://www.tensorflow.org/install/source#gpu) CUDA toolkit `>=10.1` needs to be installed. +For (limited) GPU support the [matching](https://www.tensorflow.org/install/source#gpu) CUDA toolkit needs to be installed. You can either install via diff --git a/qurator/eynollah/eynollah.py b/qurator/eynollah/eynollah.py index ad3f312..57ddcad 100644 --- a/qurator/eynollah/eynollah.py +++ b/qurator/eynollah/eynollah.py @@ -29,7 +29,7 @@ warnings.filterwarnings("ignore") from scipy.signal import find_peaks import matplotlib.pyplot as plt from scipy.ndimage import gaussian_filter1d -from keras.backend import set_session +from tensorflow.python.keras.backend import set_session from tensorflow.keras import layers from .utils.contour import ( diff --git a/requirements.txt b/requirements.txt index 0180d01..a19a191 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,8 @@ # ocrd includes opencv, numpy, shapely, click ocrd >= 2.23.3 +numpy <1.24.0 scikit-learn >= 0.23.2 -tensorflow >= 2.4.0 +tensorflow >= 2.4.0, <2.12.0 imutils >= 0.5.3 matplotlib setuptools >= 50