diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-11-17 22:42:58 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-11-17 22:42:58 +0100 |
commit | 2417288c9fe96264da708ce8d13ac7bc2faf83e3 (patch) | |
tree | a74fb7a8502b1642b71240608706efda14dee3f9 /training/conf/network | |
parent | 2cb2c5b38f0711267fecfe9c5e10940f4b4f79fc (diff) |
Add new quantizer
Diffstat (limited to 'training/conf/network')
-rw-r--r-- | training/conf/network/quantizer.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/training/conf/network/quantizer.yaml b/training/conf/network/quantizer.yaml new file mode 100644 index 0000000..827a247 --- /dev/null +++ b/training/conf/network/quantizer.yaml @@ -0,0 +1,12 @@ +_target_: text_recognizer.networks.quantizer.quantizer.VectorQuantizer +input_dim: 192 +codebook: + _target_: text_recognizer.networks.quantizer.codebook.CosineSimilarityCodebook + dim: 16 + codebook_size: 2048 + kmeans_init: true + kmeans_iters: 10 + decay: 0.8 + eps: 1.0e-5 + threshold_dead: 2 +commitment: 1.0 |