MhLiao / MaskTextSpotter

A PyTorch implementation of Mask TextSpotter
https://github.com/MhLiao/MaskTextSpotter
414 stars 96 forks source link

How to get the lexicons in evaluation? #65

Closed KevinFeng1998 closed 4 years ago

KevinFeng1998 commented 4 years ago

Excuse me,how could I get the lexicons in evaluation?

if lexicon_type == 1:
    # generic lexicon
    lexicon_path = '../../lexicons/ic15/GenericVocabulary_new.txt'
    lexicon_fid = open(lexicon_path, 'r')
    pair_list = open('../../lexicons/ic15/GenericVocabulary_pair_list.txt', 'r')