Skip to content

Commit

Permalink
fix quant export
Browse files Browse the repository at this point in the history
  • Loading branch information
LDOUBLEV committed Jul 5, 2021
1 parent 605bf83 commit fbbaf53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/slim/quantization/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fbbaf53

Please sign in to comment.