fix quant export
This commit is contained in:
parent
605bf8382d
commit
fbbaf5312d
|
@ -92,9 +92,11 @@ def main():
|
||||||
# build dataloader
|
# build dataloader
|
||||||
valid_dataloader = build_dataloader(config, 'Eval', device, logger)
|
valid_dataloader = build_dataloader(config, 'Eval', device, logger)
|
||||||
|
|
||||||
|
use_srn = config['Architecture']['algorithm'] == "SRN"
|
||||||
|
model_type = config['Architecture']['model_type']
|
||||||
# start eval
|
# start eval
|
||||||
metirc = program.eval(model, valid_dataloader, post_process_class,
|
metirc = program.eval(model, valid_dataloader, post_process_class,
|
||||||
eval_class)
|
eval_class, model_type, use_srn)
|
||||||
logger.info('metric eval ***************')
|
logger.info('metric eval ***************')
|
||||||
for k, v in metirc.items():
|
for k, v in metirc.items():
|
||||||
logger.info('{}:{}'.format(k, v))
|
logger.info('{}:{}'.format(k, v))
|
||||||
|
|
Loading…
Reference in New Issue