Merge pull request #8 from Sangkwun/patch-2

Update test.py
This commit is contained in:
Baek JeongHun 2019-05-09 11:36:41 +09:00 committed by GitHub
commit 7333391d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,10 @@ def test(opt):
converter = CTCLabelConverter(opt.character)
else:
converter = AttnLabelConverter(opt.character)
if opt.rgb:
opt.input_channel = 3
opt.num_class = len(converter.character)
model = Model(opt)
print('model input parameters', opt.imgH, opt.imgW, opt.num_fiducial, opt.input_channel, opt.output_channel,