mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
directly set pytorch metric when it's empty for regression_test.py (#1704)
This commit is contained in:
parent
23eed5c265
commit
7d085bee0e
@ -316,7 +316,7 @@ def get_pytorch_result(model_name: str, meta_info: dict, checkpoint_path: Path,
|
||||
pytorch_metric.update(_metrics[ds])
|
||||
if ds == dataset:
|
||||
pytorch_metric.update(_metrics)
|
||||
else:
|
||||
if pytorch_metric == dict():
|
||||
pytorch_metric.update(_metrics)
|
||||
task_name = metafile_metric['Task']
|
||||
if task_name not in using_task:
|
||||
|
Loading…
x
Reference in New Issue
Block a user