drop TF1 vernacular, relax TF/Keras and Torch requirements…

- do not restrict TF version, but depend on tf-keras and
  set `TF_USE_LEGACY_KERAS=1` to avoid Keras 3 behaviour
- relax Numpy version requirement up to v2
- relax Torch version requirement
- drop TF1 session management code
- drop TF1 config in favour of TF2 config code for memory growth
- training.*: also simplify and limit line length
- training.train: always train with TensorBoard callback
This commit is contained in:
Robert Sachunsky 2026-01-20 04:18:55 +01:00
parent e2754da4f5
commit 3c3effcfda
8 changed files with 289 additions and 294 deletions

View file

@ -1,8 +1,9 @@
# ocrd includes opencv, numpy, shapely, click
ocrd >= 3.3.0
numpy <1.24.0
numpy < 2.0
scikit-learn >= 0.23.2
tensorflow < 2.13
tensorflow
tf-keras # avoid keras 3 (also needs TF_USE_LEGACY_KERAS=1)
numba <= 0.58.1
scikit-image
biopython