stefann icon indicating copy to clipboard operation
stefann copied to clipboard

How to edit numbers?

Open ilovecv opened this issue 3 years ago • 1 comments

Hi,

Thanks for sharing your awesome work! I am wondering if you have a pretrained model to edit numbers? Thanks.

ilovecv avatar Jan 08 '21 08:01 ilovecv

Hi,

Thanks for your interest in our work. Unfortunately, we do not have a pretrained model for numeric characters to release at this point. Although we trained such models while preparing results for the paper but there were no official decision taken to release them.

However, you should be able to train such a model very easily with the provided code. In fannet.py change line 48 and 49 as follows:

SOURCE_CHARS = '0123456789'
TARGET_CHARS = '0123456789'

Before training, you should prepare some random test pairs for numerals and replace the default letter pairs in datasets/fannet/pairs. You need to follow the filename convention as described in the README.

prasunroy avatar Jan 12 '21 06:01 prasunroy