diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-11 23:09:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-11 23:09:22 +0200 |
commit | 6df941bdf5cad80db38d851dcb23a08a9dc55617 (patch) | |
tree | ecbe41259990955201f910f0113c723cd080ab78 /text_recognizer/models/transformer.py | |
parent | 8177b5210fbbe11bd361dedbd5b4a4e1950bdb2e (diff) |
Fix emnist mapping
Diffstat (limited to 'text_recognizer/models/transformer.py')
-rw-r--r-- | text_recognizer/models/transformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/models/transformer.py b/text_recognizer/models/transformer.py index 1ffff60..b511947 100644 --- a/text_recognizer/models/transformer.py +++ b/text_recognizer/models/transformer.py @@ -19,7 +19,7 @@ class LitTransformer(LitBase): loss_fn: Type[nn.Module], optimizer_configs: DictConfig, lr_scheduler_configs: Optional[DictConfig], - mapping: Type[EmnistMapping], + mapping: EmnistMapping, max_output_len: int = 451, start_token: str = "<s>", end_token: str = "<e>", |