Update test.py
This commit is contained in:
parent
3772d75f40
commit
3a1ebfadc3
4
test.py
4
test.py
|
@ -135,6 +135,10 @@ def test(opt):
|
||||||
converter = CTCLabelConverter(opt.character)
|
converter = CTCLabelConverter(opt.character)
|
||||||
else:
|
else:
|
||||||
converter = AttnLabelConverter(opt.character)
|
converter = AttnLabelConverter(opt.character)
|
||||||
|
|
||||||
|
if opt.rgb:
|
||||||
|
opt.input_channel = 3
|
||||||
|
|
||||||
opt.num_class = len(converter.character)
|
opt.num_class = len(converter.character)
|
||||||
model = Model(opt)
|
model = Model(opt)
|
||||||
print('model input parameters', opt.imgH, opt.imgW, opt.num_fiducial, opt.input_channel, opt.output_channel,
|
print('model input parameters', opt.imgH, opt.imgW, opt.num_fiducial, opt.input_channel, opt.output_channel,
|
||||||
|
|
Loading…
Reference in New Issue