Skip to content

Commit

Permalink
fix metric's dataset metainfo is none bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mjq2020 committed Jul 10, 2023
1 parent 7a869bb commit e00ff76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/utils/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def __init__(

def init(self, cfg):
self.evaluator: Evaluator = self.runner.build_evaluator(self.cfg.get('val_evaluator'))
self.evaluator.dataset_meta = self.dataloader.dataset.METAINFO
if hasattr(cfg.model, 'data_preprocessor'):
self.data_preprocess = MODELS.build(cfg.model.data_preprocessor)

Expand Down

0 comments on commit e00ff76

Please sign in to comment.