From ff4f15954fdf39a426984798390d125c817c991b Mon Sep 17 00:00:00 2001 From: Yoann Schneider Date: Mon, 2 Sep 2024 17:45:49 +0200 Subject: [PATCH 1/2] Mention Teklia's fork --- README.md | 2 ++ laia/scripts/htr/train_ctc.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c20de2ab..f59adbc6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ **It is also a successor to [Laia](https://github.com/jpuigcerver/Laia).** +**Development/Maintenance is now done on [Teklia's fork](https://gitlab.teklia.com/atr/pylaia). Please head over there if you want to use the latest version of PyLaia.** + [![Build](https://img.shields.io/github/workflow/status/jpuigcerver/PyLaia/Laia%20CI?&label=Build&logo=GitHub&labelColor=1b1f23)](https://github.com/jpuigcerver/PyLaia/actions?query=workflow%3A%22Laia+CI%22) [![Coverage](https://img.shields.io/codecov/c/github/jpuigcerver/PyLaia?&label=Coverage&logo=Codecov&logoColor=ffffff&labelColor=f01f7a)](https://codecov.io/gh/jpuigcerver/PyLaia) [![Code quality](https://img.shields.io/codefactor/grade/github/jpuigcerver/PyLaia?&label=CodeFactor&logo=CodeFactor&labelColor=2782f7)](https://www.codefactor.io/repository/github/jpuigcerver/PyLaia) diff --git a/laia/scripts/htr/train_ctc.py b/laia/scripts/htr/train_ctc.py index 5fd3a937..ef13b438 100755 --- a/laia/scripts/htr/train_ctc.py +++ b/laia/scripts/htr/train_ctc.py @@ -89,8 +89,8 @@ def run( if im_stats.is_fixed_height else None, color_mode=data.color_mode, - #shuffle_tr=not bool(trainer.limit_train_batches), - shuffle_tr=True if trainer.limit_train_batches==1 else False, + # shuffle_tr=not bool(trainer.limit_train_batches), + shuffle_tr=True if trainer.limit_train_batches == 1 else False, augment_tr=train.augment_training, stage="fit", num_workers=num_workers, From c33bb3905f0d735c0e8d41529f038948623ebe47 Mon Sep 17 00:00:00 2001 From: Yoann Schneider Date: Mon, 2 Sep 2024 18:01:54 +0200 Subject: [PATCH 2/2] Numpy 2.x is not supported --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 989c57d1..3f445921 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ textdistance natsort -numpy +numpy<2 scipy matplotlib # cpu version: nnutils-pytorch