baudm / parseq

Scene Text Recognition with Permuted Autoregressive Sequence Models (ECCV 2022)
https://huggingface.co/spaces/baudm/PARSeq-OCR
Apache License 2.0
565 stars 126 forks source link

Fix tgt_mask #141

Closed dotneet closed 4 months ago

dotneet commented 4 months ago

fix #139

I confirmed that the issue #139 is resolved with this change.

baudm commented 4 months ago

This is really unsupported. Please see my comment: https://github.com/baudm/parseq/issues/139#issuecomment-2136848401 For number of decoder layers > 1, the correct usage is to set refine_iters to zero.