diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-02 21:13:48 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-02 21:13:48 +0200 |
commit | 75801019981492eedf9280cb352eea3d8e99b65f (patch) | |
tree | 6521cc4134459e42591b2375f70acd348741474e /training/conf/model | |
parent | e5eca28438cd17d436359f2c6eee0bb9e55d2a8b (diff) |
Fix log import, fix mapping in datamodules, fix nn modules can be hashed
Diffstat (limited to 'training/conf/model')
-rw-r--r-- | training/conf/model/lit_transformer.yaml | 5 | ||||
-rw-r--r-- | training/conf/model/mapping/word_piece.yaml | 9 |
2 files changed, 1 insertions, 13 deletions
diff --git a/training/conf/model/lit_transformer.yaml b/training/conf/model/lit_transformer.yaml index 5341d8e..6ffde4e 100644 --- a/training/conf/model/lit_transformer.yaml +++ b/training/conf/model/lit_transformer.yaml @@ -1,8 +1,5 @@ -defaults: - - mapping: word_piece - _target_: text_recognizer.models.transformer.TransformerLitModel -interval: null +interval: step monitor: val/loss ignore_tokens: [ <s>, <e>, <p> ] start_token: <s> diff --git a/training/conf/model/mapping/word_piece.yaml b/training/conf/model/mapping/word_piece.yaml deleted file mode 100644 index 39e2ba4..0000000 --- a/training/conf/model/mapping/word_piece.yaml +++ /dev/null @@ -1,9 +0,0 @@ -_target_: text_recognizer.data.mappings.WordPieceMapping -num_features: 1000 -tokens: iamdb_1kwp_tokens_1000.txt -lexicon: iamdb_1kwp_lex_1000.txt -data_dir: null -use_words: false -prepend_wordsep: false -special_tokens: ["<s>", "<e>", "<p>"] -extra_symbols: ["\n"] |