fix quant export

This commit is contained in:
LDOUBLEV 2021-07-05 03:31:32 +00:00
parent 605bf8382d
commit fbbaf5312d
1 changed files with 3 additions and 1 deletions

View File

@ -92,9 +92,11 @@ def main():
# build dataloader
valid_dataloader = build_dataloader(config, 'Eval', device, logger)
use_srn = config['Architecture']['algorithm'] == "SRN"
model_type = config['Architecture']['model_type']
# start eval
metirc = program.eval(model, valid_dataloader, post_process_class,
eval_class)
eval_class, model_type, use_srn)
logger.info('metric eval ***************')
for k, v in metirc.items():
logger.info('{}:{}'.format(k, v))