diff --git a/modelscope/metrics/base.py b/modelscope/metrics/base.py index 1b9db825..955946b5 100644 --- a/modelscope/metrics/base.py +++ b/modelscope/metrics/base.py @@ -10,6 +10,9 @@ class Metric(ABC): complex metrics for a specific task with or without other Metric subclasses. """ + def __init__(self, *args, **kwargs): + pass + @abstractmethod def add(self, outputs: Dict, inputs: Dict): """ Append logits and labels within an eval loop.