fh2019ustc / DocTr

The official code for “DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correction”, ACM MM, Oral Paper, 2021.
Other
345 stars 48 forks source link

Some questions about convex upsample in GeoTr #20

Closed KingRicardo closed 1 year ago

KingRicardo commented 1 year ago

I'm a little confused about the use of coords0, coords1, and mask. Why not just simply used upsample or ConvTranspose https://github.com/fh2019ustc/DocTr/blob/729fcb8ee23e413a45645de60145cdb115ea1575/GeoTr.py#L226-L233

fh2019ustc commented 1 year ago

Yeah, you can use nn.Upsample as an alternative. In our experiment, the performance of this setting is similar.

KingRicardo commented 1 year ago

Thanks a lot for your response!